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>
This commit is contained in:
parent
bd7e0a3f13
commit
47c255ef68
6
Makefile
6
Makefile
@ -888,7 +888,11 @@ cpplint:
|
|||||||
@$(PYTHON) tools/check-imports.py
|
@$(PYTHON) tools/check-imports.py
|
||||||
|
|
||||||
ifneq ("","$(wildcard tools/eslint/lib/eslint.js)")
|
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]+
|
CONFLICT_RE=^>>>>>>> [0-9A-Fa-f]+|^<<<<<<< [A-Za-z]+
|
||||||
lint-ci: jslint-ci cpplint
|
lint-ci: jslint-ci cpplint
|
||||||
@if ! ( grep -IEqrs "$(CONFLICT_RE)" benchmark deps doc lib src test tools ) \
|
@if ! ( grep -IEqrs "$(CONFLICT_RE)" benchmark deps doc lib src test tools ) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user