diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-12-02 04:01:19 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-12-02 04:01:25 +0300 |
commit | ac58d3a6653425cb625684bc6ffc38ecc89646c8 (patch) | |
tree | da5092630359495d464ab6ff0e9b6a2812ef68f4 /Makefile | |
parent | 11ea8da9c327eab58d618675a9c7b78b20d1e5bc (diff) |
Import cpplint.py
make cpplint
make jslint
make lint
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 |