summaryrefslogtreecommitdiff
path: root/lint.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2006-09-25 16:16:42 +0200
committerSylvain Thénault <sylvain.thenault@logilab.fr>2006-09-25 16:16:42 +0200
commit2c007e3f319d33e49b1d428776c75a045295e728 (patch)
treec7285b847f7494530df0d865bfa94697b07e6389 /lint.py
parent2e68e3cc3abb7096715b87577092471180708222 (diff)
downloadpylint-git-2c007e3f319d33e49b1d428776c75a045295e728.tar.gz
fix custom reporter pb
Diffstat (limited to 'lint.py')
-rw-r--r--lint.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lint.py b/lint.py
index 804a5b6bc..49e9149f3 100644
--- a/lint.py
+++ b/lint.py
@@ -806,7 +806,7 @@ There are 5 kind of message types :
* (C) convention, for programming standard violation
* (R) refactor, for bad code smell
* (W) warning, for python specific problems
- * (E) error, for much probably bugs in the code
+ * (E) error, for much probably bugs in the code
* (F) fatal, if an error occured which prevented pylint from doing further \
processing.
''')
@@ -821,6 +821,11 @@ processing.
# now we can load file config and command line, plugins (which can
# provide options) have been registered
linter.load_config_file()
+ if reporter:
+ # if a custom reporter is provided as argument, it may be overriden
+ # by file parameters, so re-set it here, but before command line
+ # parsing so it's still overrideable by command line option
+ linter.set_reporter(reporter)
args = linter.load_command_line_configuration(args)
if not args:
print linter.help()