mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-3569 Inspection to warn if a loop variable is assigned inside the loop
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<html>
|
||||
<body>
|
||||
<span style="font-family: verdana,serif;">
|
||||
This inspection checks for cases when loop variable is redeclared inside of loop.
|
||||
</span>
|
||||
<pre style="font-family: monospace">
|
||||
for i in xrange(5):
|
||||
for i in xrange(20, 25):
|
||||
print("Inner", i)
|
||||
print("Outer", i)
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user