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.

-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org

_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to