summaryrefslogtreecommitdiff
path: root/pylint/checkers/classes.py
diff options
context:
space:
mode:
authorSylvain Thenault <sylvain.thenault@logilab.fr>2016-01-19 09:42:21 +0100
committerSylvain Thenault <sylvain.thenault@logilab.fr>2016-01-19 09:42:21 +0100
commit07e56cdc9635b7e36f2055ba6dbb5719162310f9 (patch)
treedaeb4ba6fccc77f7e6057aa893964919d018206c /pylint/checkers/classes.py
parent319c79d9b4e15e6600dd055370b6ad6e6392592f (diff)
downloadpylint-git-07e56cdc9635b7e36f2055ba6dbb5719162310f9.tar.gz
remove @check_message decorator from [visit|leave]_classdef methods of the ClassChecker
Those methods are actually not only emitting the listed messages but also updating some internal state that is used from other, unrestricted, messages. We should work on separating responsabilities if we want to restrict method entries upon messages restriction. Closes issue #789
Diffstat (limited to 'pylint/checkers/classes.py')
-rw-r--r--pylint/checkers/classes.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py
index c8e142ed7..95cd5f4d3 100644
--- a/pylint/checkers/classes.py
+++ b/pylint/checkers/classes.py
@@ -347,11 +347,6 @@ a metaclass class method.'}
self._first_attrs = []
self._meth_could_be_func = None
- @check_messages('no-init', 'invalid-slots', 'inherit-non-class',
- 'inconsistent-mro', 'duplicate-bases',
- 'invalid-slots', 'invalid-slots-object', 'abstract-method',
- 'access-member-before-definition',
- 'attribute-defined-outside-init')
def visit_classdef(self, node):
"""init visit variable _accessed
"""
@@ -397,8 +392,6 @@ a metaclass class method.'}
self.add_message('inherit-non-class',
args=base.as_string(), node=node)
- @check_messages('access-member-before-definition',
- 'attribute-defined-outside-init')
def leave_classdef(self, cnode):
"""close a class node:
check that instance attributes are defined in __init__ and check