diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-05-25 10:04:37 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-05-25 10:04:37 +0200 |
commit | 25ea2bd6805c889c07ead9c0a5f244b64f49dcfb (patch) | |
tree | e62da224bd24b8cbd7f77607600736d9f085ea96 /checkers/imports.py | |
parent | 43198e3a5b83ff030641c0576aef93ca996be5e6 (diff) | |
download | pylint-25ea2bd6805c889c07ead9c0a5f244b64f49dcfb.tar.gz |
proper update of report identifiers to avoid collision with message in the Refactoring category
Diffstat (limited to 'checkers/imports.py')
-rw-r--r-- | checkers/imports.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/checkers/imports.py b/checkers/imports.py index d421ee8..38d5218 100644 --- a/checkers/imports.py +++ b/checkers/imports.py @@ -125,7 +125,7 @@ def make_graph(filename, dep_info, sect, gtype): MSGS = { 'F0401': ('Unable to import %r' , 'Used when pylint has been unable to import a module.'), - 'R0401': ('Cyclic import (%s)', + 'RP0401': ('Cyclic import (%s)', 'Used when a cyclic import between two or more modules is \ detected.'), @@ -173,21 +173,21 @@ separated by a comma'} 'type' : 'string', 'metavar' : '<file.dot>', 'help' : 'Create a graph of every (i.e. internal and \ -external) dependencies in the given file (report R0402 must not be disabled)'} +external) dependencies in the given file (report RP0402 must not be disabled)'} ), ('ext-import-graph', {'default' : '', 'type' : 'string', 'metavar' : '<file.dot>', 'help' : 'Create a graph of external dependencies in the \ -given file (report R0402 must not be disabled)'} +given file (report RP0402 must not be disabled)'} ), ('int-import-graph', {'default' : '', 'type' : 'string', 'metavar' : '<file.dot>', 'help' : 'Create a graph of internal dependencies in the \ -given file (report R0402 must not be disabled)'} +given file (report RP0402 must not be disabled)'} ), ) @@ -197,9 +197,9 @@ given file (report R0402 must not be disabled)'} self.stats = None self.import_graph = None self.__int_dep_info = self.__ext_dep_info = None - self.reports = (('R0401', 'External dependencies', + self.reports = (('RP0401', 'External dependencies', self.report_external_dependencies), - ('R0402', 'Modules dependencies graph', + ('RP0402', 'Modules dependencies graph', self.report_dependencies_graph), ) @@ -213,9 +213,9 @@ given file (report R0402 must not be disabled)'} def close(self): """called before visiting project (i.e set of modules)""" # don't try to compute cycles if the associated message is disabled - if self.linter.is_message_enabled('R0401'): + if self.linter.is_message_enabled('RP0401'): for cycle in get_cycles(self.import_graph): - self.add_message('R0401', args=' -> '.join(cycle)) + self.add_message('RP0401', args=' -> '.join(cycle)) def visit_import(self, node): """triggered when an import statement is seen""" |