david-sarah
|
4d6260d6ad
|
check-miscaptures.py: report the number of files that were not analysed due to syntax errors (and don't count them in the number of suspicious captures). refs #1555
|
2011-10-09 05:03:01 +00:00 |
|
david-sarah
|
efd3c8b113
|
check-miscaptures.py: handle corner cases around default arguments correctly. Also make a minor optimization when there are no assigned variables to consider. refs #1555
|
2011-10-09 04:50:23 +00:00 |
|
david-sarah
|
5359c24e99
|
check-miscaptures.py: Python doesn't really have declarations; report the topmost assignment. refs #1555
|
2011-10-09 04:48:00 +00:00 |
|
david-sarah
|
1c6fe1d230
|
check-miscaptures.py: handle destructuring function arguments correctly. refs #1555
|
2011-10-09 04:47:10 +00:00 |
|
david-sarah
|
d2f3ef9714
|
check-miscaptures.py: check while loops and list comprehensions as well as for loops. Also fix a pyflakes warning. refs #1555
|
2011-10-09 04:40:22 +00:00 |
|
david-sarah
|
be1c94893f
|
Add misc/coding_tools/check-miscaptures.py to detect incorrect captures of variables declared in a for loop, and a 'make check-miscaptures' Makefile target to run it. (It is also run by 'make code-checks'.) This is a rewritten version that reports much fewer false positives, by determining captured variables more accurately. fixes #1555
|
2011-10-07 07:41:21 +00:00 |
|