summaryrefslogtreecommitdiff
path: root/pylint/checkers/classes.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-05-05 12:16:50 +0300
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-05-05 12:16:50 +0300
commita76e32c89588be85f24b21fcdd23604e2ea9ce99 (patch)
treed08b1458c8a6cd2013f0a6edeb598f48c5b9b575 /pylint/checkers/classes.py
parent68fee0184aa4aa45f64f287b44ab940e7d3fb730 (diff)
downloadpylint-a76e32c89588be85f24b21fcdd23604e2ea9ce99.tar.gz
Make ignore-iface-methods a noop option, mark it as deprecated.
Diffstat (limited to 'pylint/checkers/classes.py')
-rw-r--r--pylint/checkers/classes.py20
1 files changed, 5 insertions, 15 deletions
diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py
index 007cb42..146fd01 100644
--- a/pylint/checkers/classes.py
+++ b/pylint/checkers/classes.py
@@ -32,6 +32,7 @@ from pylint.checkers.utils import (
PYMETHODS, overrides_a_method, check_messages, is_attr_private,
is_attr_protected, node_frame_class, safe_infer, is_builtin_object,
decorated_with_property, unimplemented_abstract_methods)
+from pylint.utils import deprecated_option
import six
if sys.version_info >= (3, 0):
@@ -250,21 +251,10 @@ class ClassChecker(BaseChecker):
priority = -2
# configuration options
options = (('ignore-iface-methods',
- {'default' : (#zope interface
- 'isImplementedBy', 'deferred', 'extends', 'names',
- 'namesAndDescriptions', 'queryDescriptionFor', 'getBases',
- 'getDescriptionFor', 'getDoc', 'getName', 'getTaggedValue',
- 'getTaggedValueTags', 'isEqualOrExtendedBy', 'setTaggedValue',
- 'isImplementedByInstancesOf',
- # twisted
- 'adaptWith',
- # logilab.common interface
- 'is_implemented_by'),
- 'type' : 'csv',
- 'metavar' : '<method names>',
- 'help' : 'List of interface methods to ignore, \
-separated by a comma. This is used for instance to not check methods defines \
-in Zope\'s Interface base class.'}
+ # TODO(cpopa): remove this in Pylint 1.7.
+ deprecated_option(opt_type="csv",
+ help_msg="This is deprecated, because "
+ "it is not used anymore.")
),
('defining-attr-methods',
{'default' : ('__init__', '__new__', 'setUp'),