summaryrefslogtreecommitdiff
path: root/pylint/checkers/design_analysis.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-03-11 17:24:01 +0200
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-03-11 17:24:01 +0200
commit407d2ab9ea9516ea190733a7542ddf57ed89fb8f (patch)
treed0e8ec39f7b26f6a7e114d12736ecac0831ce9cc /pylint/checkers/design_analysis.py
parentf57dae9a1134df95e6418f37f6b7bf5ced1c77b0 (diff)
downloadpylint-407d2ab9ea9516ea190733a7542ddf57ed89fb8f.tar.gz
Remove abstract-class-little-used warning, since it doesn't add any real value.
Diffstat (limited to 'pylint/checkers/design_analysis.py')
-rw-r--r--pylint/checkers/design_analysis.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/pylint/checkers/design_analysis.py b/pylint/checkers/design_analysis.py
index e361cca..fe5e973 100644
--- a/pylint/checkers/design_analysis.py
+++ b/pylint/checkers/design_analysis.py
@@ -79,10 +79,6 @@ MSGS = {
'R0921': ('Abstract class not referenced',
'abstract-class-not-used',
'Used when an abstract class is not used as ancestor anywhere.'),
- 'R0922': ('Abstract class is only referenced %s times',
- 'abstract-class-little-used',
- 'Used when an abstract class is used less than X times as \
- ancestor.'),
'R0923': ('Interface not implemented',
'interface-not-implemented',
'Used when an interface class is not implemented anywhere.'),
@@ -181,22 +177,18 @@ class MisdesignChecker(BaseChecker):
self._abstracts = []
self._ifaces = []
- # Check 'R0921', 'R0922', 'R0923'
def close(self):
"""check that abstract/interface classes are used"""
for abstract in self._abstracts:
if not abstract in self._used_abstracts:
self.add_message('abstract-class-not-used', node=abstract)
- elif self._used_abstracts[abstract] < 2:
- self.add_message('abstract-class-little-used', node=abstract,
- args=self._used_abstracts[abstract])
for iface in self._ifaces:
if not iface in self._used_ifaces:
self.add_message('interface-not-implemented', node=iface)
@check_messages('too-many-ancestors', 'too-many-instance-attributes',
'too-few-public-methods', 'too-many-public-methods',
- 'abstract-class-not-used', 'abstract-class-little-used',
+ 'abstract-class-not-used',
'interface-not-implemented')
def visit_class(self, node):
"""check size of inheritance hierarchy and number of instance attributes