summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorAlexandre Fayolle <afayolle.ml@free.fr>2012-10-03 07:23:48 +0200
committerAlexandre Fayolle <afayolle.ml@free.fr>2012-10-03 07:23:48 +0200
commitca56dc268c382b9b81368e08d60ff8a17ec4ce53 (patch)
treef6586adf8415255f59f329462907440ce68bd91c /utils.py
parentb6cb531be7f3398944afd14b9a475147bbef53d5 (diff)
downloadpylint-ca56dc268c382b9b81368e08d60ff8a17ec4ce53.tar.gz
add support for --disable=all option (closes: #105327)
updated the documentation accordingly deprecate 'disable-all' as an inline directive in favor of 'skip-file'
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index 5661d76..32ad4e9 100644
--- a/utils.py
+++ b/utils.py
@@ -172,6 +172,11 @@ class MessagesHandlerMixIn:
def disable(self, msgid, scope='package', line=None):
"""don't output message of the given id"""
assert scope in ('package', 'module')
+ # handle disable=all by disabling all categories
+ if msgid == 'all':
+ for msgid in MSG_TYPES:
+ self.disable(msgid, scope, line)
+ return
# msgid is a category?
catid = category_id(msgid)
if catid is not None: