Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-12-02 04:01:19 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-12-02 04:01:25 +0300
commitac58d3a6653425cb625684bc6ffc38ecc89646c8 (patch)
treeda5092630359495d464ab6ff0e9b6a2812ef68f4 /Makefile
parent11ea8da9c327eab58d618675a9c7b78b20d1e5bc (diff)
Import cpplint.py
make cpplint make jslint make lint
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9ac09602caf..70b84998e16 100644
--- a/Makefile
+++ b/Makefile
@@ -130,11 +130,18 @@ bench-idle:
sleep 1
./node benchmark/idle_clients.js &
-lint:
+# TODO lint the test directories and src/node.js
+jslint:
@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
+cpplint:
+ @for i in src/*.cc src/*.h src/*.c; do \
+ python tools/cpplint.py $$i || exit 1; \
+ done
+
+lint: jslint cpplint
-.PHONY: lint bench clean docopen docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload
+.PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload