diff options
author | Alexandre Fayolle <afayolle.ml@free.fr> | 2012-10-03 07:23:48 +0200 |
---|---|---|
committer | Alexandre Fayolle <afayolle.ml@free.fr> | 2012-10-03 07:23:48 +0200 |
commit | ca56dc268c382b9b81368e08d60ff8a17ec4ce53 (patch) | |
tree | f6586adf8415255f59f329462907440ce68bd91c /utils.py | |
parent | b6cb531be7f3398944afd14b9a475147bbef53d5 (diff) | |
download | pylint-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.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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: |