make cpplint
make jslint
make lint
This commit is contained in:
Ryan Dahl 2010-12-01 17:01:19 -08:00
Родитель 11ea8da9c3
Коммит ac58d3a665
3 изменённых файлов: 3138 добавлений и 2 удалений

Просмотреть файл

@ -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:

Просмотреть файл

@ -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
.PHONY: lint bench clean docopen docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload
lint: jslint cpplint
.PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload

3126
tools/cpplint.py поставляемый Normal file

Разница между файлами не показана из-за своего большого размера Загрузить разницу