]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - Makefile
Add misc/coding_tools/check-miscaptures.py to detect incorrect captures of variables...
[tahoe-lafs/tahoe-lafs.git] / Makefile
index f1fd3a9b7f57f0ed45f41d93aeb4ff62f8ec7ee7..0fffb5f493b7f4cf24bd1dd47262b44880e83503 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -121,7 +121,7 @@ upload-coverage:
        false
 endif
 
-code-checks: build version-and-path check-interfaces -find-trailing-spaces -check-umids pyflakes
+code-checks: build version-and-path check-interfaces check-miscaptures -find-trailing-spaces -check-umids pyflakes
 
 version-and-path:
        $(TAHOE) --version-and-path
@@ -130,6 +130,10 @@ check-interfaces:
        $(TAHOE) @misc/coding_tools/check-interfaces.py 2>&1 |tee violations.txt
        @echo
 
+check-miscaptures:
+       $(PYTHON) misc/coding_tools/check-miscaptures.py $(SOURCES) 2>&1 |tee miscaptures.txt
+       @echo
+
 pyflakes:
        $(PYTHON) -OOu `which pyflakes` $(SOURCES) |sort |uniq
        @echo