python - How do I disable a Pylint warning? -
i'm trying disable warning c0321 ("more 1 statement on single line" -- put if statements short single-line results on same line), in pylint 0.21.1 (if matters: astng 0.20.1, common 0.50.3, python 2.6.6 (r266:84292, sep 15 2010, 16:22:56)).
i've tried adding disable=c0321 in pylint configuration file, pylint insists on reporting anyway. variations on line (like disable=0321 or disable=c321) flagged errors, pylint does recognize option properly, it's ignoring it.
is pylint bug, or doing wrong? there way around this? i'd rid of of noise.
pylint --generate-rcfile shows this:
[messages control] # enable message, report, category or checker given id(s). can # either give multiple identifier separated comma (,) or put option # multiple time. #enable= # disable message, report, category or checker given id(s). # can either give multiple identifier separated comma (,) or put option # multiple time (only on command line, not in configuration file # should appear once). #disable= so looks ~/.pylintrc should have disable= line/s in inside section [messages control].
Comments
Post a Comment