On 12/05/2011 06:49 PM, Andrea Crotti wrote:
On 12/05/2011 03:04 PM, Sylvain Thénault wrote:
  "pylint -rn -d IWRCE -e<ID1>,<ID2>,<ID2>  mymodule"

"-rn" disable reports
"-d IWRCE" disable every messages by disabling each category
"-e ..." reenable desired messages

IMO that should do the trick.
Thanks a lot, only one correction, is "-d I,W,R,C,E" instead of IWRCE.

And what about doing the same thing from Python code instead?
I guess I have to pass something to PyLinter, but I can't really get what..

I got it more or less, I just need to create an argument list and pass it to Run,
and I can also pass another reporter if I want.
Here is what I get though:

running ['-i', 'y', '-rn', '-d', 'W0611,W0612,W0613,R0401,W0401,W0403,W0404,E0104,E0105,E0602,E0601,W0410', '-e', 'I,W,R,C,E', 'setup.py']
No config file found, using default configuration
************* Module setup
W0511:  4,0: TODO: what if this module is having some nasty side effects??
C0111:  1,0: Missing docstring
C0103: 7,0: Invalid name "config" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$) C0103: 10,0: Invalid name "bindir" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$) C0103: 11,0: Invalid name "scripts" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$) C0103: 14,0: Invalid name "extra_requires" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
W0142: 20,0: Used * or ** magic

Where the codes used are quite different from the one I specified, how is this possible?
Thanks,
Andrea
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to