Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
make: add cpplint to test target
Browse files Browse the repository at this point in the history
Also, exclude some C-headers, machine generated headers and tweaked
sources from cpplint file list.
  • Loading branch information
indutny committed Jul 31, 2013
1 parent 8e29ce9 commit ccf8f3e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ distclean:
test: all
$(PYTHON) tools/test.py --mode=release simple message
$(MAKE) jslint
$(MAKE) cpplint

test-http1: all
$(PYTHON) tools/test.py --mode=release --use-http1 simple message
Expand Down Expand Up @@ -388,8 +389,17 @@ jslintfix:
jslint:
PYTHONPATH=tools/closure_linter/ $(PYTHON) tools/closure_linter/closure_linter/gjslint.py --unix_mode --strict --nojsdoc -r lib/ -r src/ --exclude_files lib/punycode.js

CPPLINT_EXCLUDE ?=
CPPLINT_EXCLUDE += src/tree.h
CPPLINT_EXCLUDE += src/queue.h
CPPLINT_EXCLUDE += src/v8abbr.h
CPPLINT_EXCLUDE += src/node_root_certs.h
CPPLINT_EXCLUDE += src/node_dtrace.cc

CPPLINT_FILES = $(filter-out $(CPPLINT_EXCLUDE), $(wildcard src/*.cc src/*.h src/*.c))

cpplint:
@$(PYTHON) tools/cpplint.py $(wildcard src/*.cc src/*.h src/*.c)
@$(PYTHON) tools/cpplint.py $(CPPLINT_FILES)

lint: jslint cpplint

Expand Down

0 comments on commit ccf8f3e

Please sign in to comment.