summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-12-01 16:35:46 -0800
committerRyan Dahl <ry@tinyclouds.org>2010-12-01 16:42:26 -0800
commita128451004201ce0b81269bb693c2bc43cd65aa6 (patch)
tree195b274073c68687484353e891e419509cfb8540 /Makefile
parent08d8116f6b518cec8536b13659607906212324eb (diff)
downloadnodejs-a128451004201ce0b81269bb693c2bc43cd65aa6.tar.gz
nodejs-a128451004201ce0b81269bb693c2bc43cd65aa6.tar.bz2
nodejs-a128451004201ce0b81269bb693c2bc43cd65aa6.zip
Import Google's closure_linter
Run with 'make lint'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b0040e02a..9ac09602c 100644
--- a/Makefile
+++ b/Makefile
@@ -130,5 +130,11 @@ bench-idle:
sleep 1
./node benchmark/idle_clients.js &
+lint:
+ @for i in lib/*.js; do \
+ PYTHONPATH=tools/closure_linter/ python tools/closure_linter/closure_linter/gjslint.py \
+ --unix_mode --strict --nojsdoc $$i || exit 1; \
+ done
-.PHONY: bench clean docopen docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload
+
+.PHONY: lint bench clean docopen docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload