summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-02-13 11:19:14 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2019-02-13 11:19:14 +0100
commitad8db4c69bbe33f5d805388383e1f0954fcb4b40 (patch)
tree13bcca7758d0d99851065e7c15ad6212d145ec4e
parente627af0c431a38814b058f5183a18bde6ff7f548 (diff)
downloadpylint-git-ad8db4c69bbe33f5d805388383e1f0954fcb4b40.tar.gz
Fix lint warnings
-rw-r--r--pylint/lint.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pylint/lint.py b/pylint/lint.py
index 017c68547..a0c970a56 100644
--- a/pylint/lint.py
+++ b/pylint/lint.py
@@ -880,8 +880,10 @@ class PyLinter(
def get_checker_names(self):
"""Get all the checker names that this linter knows about."""
- checkers = self.get_checkers()
- return sorted({check.name for check in checkers if check.name != "master"})
+ current_checkers = self.get_checkers()
+ return sorted(
+ {check.name for check in current_checkers if check.name != "master"}
+ )
def prepare_checkers(self):
"""return checkers needed for activated messages and reports"""
@@ -1682,8 +1684,7 @@ group are mutually exclusive.",
These should be useful to know what check groups someone can disable
or enable.
"""
- checkers = self.linter.get_checker_names()
- for check in checkers:
+ for check in self.linter.get_checker_names():
print(check)
sys.exit(0)