summaryrefslogtreecommitdiff
path: root/doc/data/messages/n/no-else-continue/bad.py
diff options
context:
space:
mode:
authorMatus Valo <matusvalo@users.noreply.github.com>2022-04-12 10:45:10 +0200
committerGitHub <noreply@github.com>2022-04-12 10:45:10 +0200
commitc48365c4c1a8f2c816a1a36135590de22c757f5a (patch)
tree0cc6a1ea82ac69e84f34618ef8f3e74207e4b202 /doc/data/messages/n/no-else-continue/bad.py
parentd09e34e8e53db0aef17287936e34eb8a1e9daa37 (diff)
downloadpylint-git-c48365c4c1a8f2c816a1a36135590de22c757f5a.tar.gz
Added no-else-continue message example (#6263)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'doc/data/messages/n/no-else-continue/bad.py')
-rw-r--r--doc/data/messages/n/no-else-continue/bad.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/data/messages/n/no-else-continue/bad.py b/doc/data/messages/n/no-else-continue/bad.py
new file mode 100644
index 000000000..5e3172947
--- /dev/null
+++ b/doc/data/messages/n/no-else-continue/bad.py
@@ -0,0 +1,6 @@
+def even_number_under(n: int):
+ for i in range(n):
+ if i%2 == 1: # [no-else-continue]
+ continue
+ else:
+ yield i