On 08/16/2010 03:35 AM, Sylvain Thénault wrote:
> On 14 août 15:58, Nikolaus Rath wrote:
>> Hi,
>>
>> This works fine:
>>
>> $ pylint --disable=C0111 --disable=C0102 mymodule/bar.py
>> ************* Module mymodule.bar
>> E0611:  4: No name 'foo' in module ''
>> W0611:  4: Unused import bla
>>
>>
>> But this does not:
>>
>> $ pylint --rcfile rc mymodule/bar.py
>> ************* Module mymodule.bar
>> C0111:  1: Missing docstring
>> E0611:  4: No name 'foo' in module ''
>> W0611:  4: Unused import bla
>>
>> $ cat rc 
>> [REPORTS]
>> include-ids=yes
>> reports=no
>>
>> [MESSAGES CONTROL]
>>
>> disable=C0111
>> disable=C0102
>>
>> Is this a known bug? --generate-rcfile also says:
>>
>> # Disable the message, report, category or checker with the given id(s). You
>> # can either give multiple identifier separated by comma (,) or put this 
>> option
>> # multiple time.
> 
> huum, you can actually put it multiple time *as option on the command line*. 
> In the configuration file, you should put it only once and separate values
> by comma. The documentation should be fixed.

I think it would be very convenient to specify the values on separate
lines. That way I can add a comment for each message, describing what
the message is and why I disabled it. Otherwise I just have one huge
line that is really difficult to work with.



Best,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to