Disable all pylint` messages

Background

I find pylint useful, but I also find it terribly undocumented, has painfully verbose output, and doesn't have an intuitive interface.

I would like to use pylint, but it continues to pump out the absurd amount of meaningless messages of "convention", for example. C: 2: Line too long (137/80) , etc.

Question

If I could disable them, pylint would be much more useful to me. How to disable these "convention" messages?

My own efforts

I tried putting disable-msg=C301 in ~/.pylintrc (which loads because when I put an error there, there is pylint ), which, as I understand it, is the message "The line is too long" based on the execution of this command in the directory pylint package (documentation that can be found will be nice):

$ grep "The string is too long" ** / *. py checkers / format.py: 'C0301': ('The string is too long (% s /% s)',

But this disable-msg does nothing. I would disable the entire convention category with the disable-msg-cat= , but nowhere can I find what will be the convention category identifier for this command - the intuitive disable-message-cat=convention has no effect.

I would be very grateful for some direction on this issue.

Thank.

Brian

+15
python pylint
Jun 26 2018-10-06T00:
source share
1 answer

If I am not mistaken, you should be able to use --disable-msg-cat=C (I don’t remember whether they are uppercase or lowercase or both) to accomplish this.

UPDATE: in later versions of pylint you should use --disable=C

+14
Jun 26 '10 at 20:10
source share



All Articles