summaryrefslogtreecommitdiff
path: root/lint.py
diff options
context:
space:
mode:
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2006-08-10 15:45:22 +0200
committerAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2006-08-10 15:45:22 +0200
commitca12ce5e3ff712f4feeb203428c14e34b59f3ea2 (patch)
tree28e71c495779650e94c401b34f69b55586d29691 /lint.py
parent2fd60ad41b783a1b82a7d3bba051b0a5e91c778c (diff)
downloadpylint-git-ca12ce5e3ff712f4feeb203428c14e34b59f3ea2.tar.gz
load defaults options at registration time
Diffstat (limited to 'lint.py')
-rw-r--r--lint.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lint.py b/lint.py
index adbd11a1f..acf382b67 100644
--- a/lint.py
+++ b/lint.py
@@ -283,6 +283,7 @@ This is used by the global evaluation report (R0004).'}),
)
self.register_checker(self)
self._dynamic_plugins = []
+ self.load_provider_defaults()
def load_plugin_modules(self, modnames):
"""take a list of module names which are pylint plugins and load
@@ -340,6 +341,7 @@ This is used by the global evaluation report (R0004).'}),
if hasattr(checker, 'msgs'):
self.register_messages(checker)
# XXX adim should we load_defaults() here ?: checker.load_defaults()
+ checker.load_defaults()
def enable_checkers(self, listed, enabled):
"""only enable/disable checkers from the given list"""
@@ -524,6 +526,8 @@ This is used by the global evaluation report (R0004).'}),
"""set the name of the currently analyzed module and
init statistics for it
"""
+ if not modname and filepath is None:
+ return
self.current_name = modname
self.current_file = filepath or modname
self.stats['by_module'][modname] = {}
@@ -810,7 +814,7 @@ There are 5 kind of message types :
processing.
''')
# read configuration
- linter.load_provider_defaults()
+ # linter.load_provider_defaults()
linter.read_config_file()
# is there some additional plugins in the file configuration, in
config_parser = linter._config_parser