Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Import cpplint.py

make cpplint
make jslint
make lint
  • Loading branch information...
commit ac58d3a6653425cb625684bc6ffc38ecc89646c8 1 parent 11ea8da
@ry ry authored
Showing with 3,138 additions and 2 deletions.
  1. +3 −0  LICENSE
  2. +9 −2 Makefile
  3. +3,126 −0 tools/cpplint.py
View
3  LICENSE
@@ -37,6 +37,9 @@ are:
- tools/closure_linter is copyrighted by The Closure Linter Authors and
Google Inc and is released under the Apache license.
+ - tools/cpplint.py is copyrighted by Google Inc and is released under the
+ BSD license.
+
Node's license follows:
View
11 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
View
3,126 tools/cpplint.py
3,126 additions, 0 deletions not shown
Please sign in to comment.
Something went wrong with that request. Please try again.