summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRuslan Bekenev <furyinbox@gmail.com>2017-04-07 22:07:14 +0300
committerBenjamin Gruenbaum <benji@tipranks.com>2017-04-14 21:50:09 +0300
commit47c255ef68c54aa4a50ac0512c35fd3acc56b84f (patch)
tree2f0e50c1c06e90b1d0daed8fc34d8670d36bf2af /Makefile
parentbd7e0a3f133a2111aabc627cc20eb6212acb9f03 (diff)
downloadandroid-node-v8-47c255ef68c54aa4a50ac0512c35fd3acc56b84f.tar.gz
android-node-v8-47c255ef68c54aa4a50ac0512c35fd3acc56b84f.tar.bz2
android-node-v8-47c255ef68c54aa4a50ac0512c35fd3acc56b84f.zip
build: run cpplint even if jslint failed
lint target now runs both linters even if one of them failed. PR-URL: https://github.com/nodejs/node/pull/12276 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9d27292aa6..2437e7c3fe 100644
--- a/Makefile
+++ b/Makefile
@@ -888,7 +888,11 @@ cpplint:
@$(PYTHON) tools/check-imports.py
ifneq ("","$(wildcard tools/eslint/lib/eslint.js)")
-lint: jslint cpplint
+lint:
+ EXIT_STATUS=0 ; \
+ $(MAKE) jslint || EXIT_STATUS=$$? ; \
+ $(MAKE) cpplint || EXIT_STATUS=$$? ; \
+ exit $$EXIT_STATUS
CONFLICT_RE=^>>>>>>> [0-9A-Fa-f]+|^<<<<<<< [A-Za-z]+
lint-ci: jslint-ci cpplint
@if ! ( grep -IEqrs "$(CONFLICT_RE)" benchmark deps doc lib src test tools ) \