summaryrefslogtreecommitdiff
path: root/testutils.py
diff options
context:
space:
mode:
authorTorsten Marek <tmarek@google.com>2013-03-29 18:33:23 +0100
committerTorsten Marek <tmarek@google.com>2013-03-29 18:33:23 +0100
commit1c19e05887bb6abb26dd54cffa8229226a4ca36c (patch)
tree360bb04320b6df591d62b85a4071aee8ed07f8ff /testutils.py
parent6fd6d335d19941395686359e4e3ed43d0b7b4b18 (diff)
downloadpylint-git-1c19e05887bb6abb26dd54cffa8229226a4ca36c.tar.gz
Emit a warning for loops that have an else clause but no break or return.
Technically, the else: is superfluous with the return statement, but after much internal discussion, I've changed the patch to allow this. The main point is that the indented block is useful as a visual marker to say that the loop may end early and end execution of the whole block, or something else might happen afterwards. That being said, I wouldn't be terribly sad if we took it out again. Closes #81378
Diffstat (limited to 'testutils.py')
0 files changed, 0 insertions, 0 deletions