summaryrefslogtreecommitdiff
path: root/pylint/lint.py
diff options
context:
space:
mode:
authorMihai Balint <balint.mihai@gmail.com>2015-02-28 17:13:21 +0200
committerMihai Balint <balint.mihai@gmail.com>2015-02-28 17:13:21 +0200
commitf0ad39a389c2ff9933f143f20c62e118c13b0b56 (patch)
tree80e9bfebcb55541711b16bddbbec060aa5c0af18 /pylint/lint.py
parentd76f63fc0429585bf759c8dd5e31e853d373245d (diff)
downloadpylint-f0ad39a389c2ff9933f143f20c62e118c13b0b56.tar.gz
start removing checks from disabled list, fix code to make sure these pass: C0102,C0112,C0121,C0202,C0203,C0204,C0301
Diffstat (limited to 'pylint/lint.py')
-rw-r--r--pylint/lint.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/pylint/lint.py b/pylint/lint.py
index 7274c78..2ebd733 100644
--- a/pylint/lint.py
+++ b/pylint/lint.py
@@ -217,7 +217,8 @@ if multiprocessing is not None:
try:
results_queue.put(result)
except Exception as ex:
- print("internal error with sending report for module %s" % file_or_module, file=sys.stderr)
+ print("internal error with sending report for module %s" %
+ file_or_module, file=sys.stderr)
print(ex, file=sys.stderr)
results_queue.put({})
@@ -630,7 +631,8 @@ class PyLinter(configuration.OptionsManagerMixIn,
except KeyError:
meth = self._bw_options_methods[opt]
# found a "(dis|en)able-msg" pragma deprecated suppresssion
- self.add_message('deprecated-pragma', line=start[0], args=(opt, opt.replace('-msg', '')))
+ self.add_message('deprecated-pragma', line=start[0],
+ args=(opt, opt.replace('-msg', '')))
for msgid in textutils.splitstrip(value):
# Add the line where a control pragma was encountered.
if opt in control_pragmas:
@@ -638,7 +640,8 @@ class PyLinter(configuration.OptionsManagerMixIn,
try:
if (opt, msgid) == ('disable', 'all'):
- self.add_message('deprecated-pragma', line=start[0], args=('disable=all', 'skip-file'))
+ self.add_message('deprecated-pragma', line=start[0],
+ args=('disable=all', 'skip-file'))
self.add_message('file-ignored', line=start[0])
self._ignore_file = True
return
@@ -830,7 +833,8 @@ class PyLinter(configuration.OptionsManagerMixIn,
self.current_file = ast_node.file # pylint: disable=maybe-no-member
self.check_astroid_module(ast_node, walker, rawcheckers, tokencheckers)
# warn about spurious inline messages handling
- for msgid, line, args in self.file_state.iter_spurious_suppression_messages(self.msgs_store):
+ spurious_messages = self.file_state.iter_spurious_suppression_messages(self.msgs_store)
+ for msgid, line, args in spurious_messages:
self.add_message(msgid, line, None, args)
# notify global end
self.stats['statement'] = walker.nbstatements