]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
Add misc/coding_tools/check-miscaptures.py to detect incorrect captures of variables...
authordavid-sarah <david-sarah@jacaranda.org>
Fri, 7 Oct 2011 07:41:21 +0000 (07:41 +0000)
committerdavid-sarah <david-sarah@jacaranda.org>
Fri, 7 Oct 2011 07:41:21 +0000 (07:41 +0000)
commitbe1c94893fa08ec87077ef2a944088a3a328ad31
treec112d71fe1f4a504b714d3d3c8121fc0b4b1d152
parentbac24aee0dab5b23af66d5a21d1e15d523f35025
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
Makefile
misc/coding_tools/check-miscaptures.py [new file with mode: 0644]