The following pylint command still outputs reports:
% pylint --reports=no module
versions and environment:
% uname -a
Darwin macbook3.local 9.4.0 Darwin Kernel Version 9.4.0: Mon Jun 9 19:30:53 PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386 i386
% python --version
Python 2.5.1
% pylint --version
No config file found, using default configuration
pylint 0.15.0,
astng 0.17.3, common 0.35.0
Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
[GCC 4.0.1 (Apple Inc. build 5465)]
on Mac OS X 10.5.4.
I gave a quick look at the pylint source code. Removing optparse's default option fixes this problem (see below), but I don't know why.
--- pylint_orig/lint.py 2008-09-14 18:49:35.000000000 +0900
+++ /Library/Python/2.5/site-packages/pylint-0.15.0-py2.5.egg/pylint/lint.py 2008-09-14 18:50:07.000000000 +0900
@@ -184,7 +184,7 @@
Reports (if any) will be written in a file name "pylint_global.[txt|html]".'}),
('reports',
- {'default': 1, 'type' : 'yn', 'metavar' : '',
+ {'type' : 'yn', 'metavar' : '',
'short': 'r',
'group': 'Reports',
'help' : 'Tells wether to display a full report or only the\

0 comments:
Post a Comment