diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-10-10 21:09:50 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-10-10 21:09:50 +0300 |
commit | 32305f11c7e3bab9c55be4e8d68404b9d2731edc (patch) | |
tree | 1aa325138d99070ba24fd05c431670be165fb330 /pylint/utils.py | |
parent | 75cc3326a92a1da3eb193b89fc65f5242df30691 (diff) | |
download | pylint-32305f11c7e3bab9c55be4e8d68404b9d2731edc.tar.gz |
--enable=all can now be used. Closes issue #142.
Diffstat (limited to 'pylint/utils.py')
-rw-r--r-- | pylint/utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pylint/utils.py b/pylint/utils.py index 47297b0..3c943fb 100644 --- a/pylint/utils.py +++ b/pylint/utils.py @@ -307,6 +307,14 @@ class MessagesHandlerMixIn(object): def enable(self, msgid, scope='package', line=None, ignore_unknown=False): """reenable message of the given id""" assert scope in ('package', 'module') + if msgid == 'all': + for msgid in MSG_TYPES: + self.enable(msgid, scope=scope, line=line) + if not self._python3_porting_mode: + # Don't activate the python 3 porting checker if it + # wasn't activated explicitly. + self.disable('python3') + return catid = category_id(msgid) # msgid is a category? if catid is not None: |