From 383cc0869e21399ab455d1a65cff87e15edf3f30 Mon Sep 17 00:00:00 2001 From: Ruslan Bekenev Date: Fri, 7 Apr 2017 22:07:14 +0300 Subject: [PATCH] build: run cpplint even if jslint failed from now lint target should run both linters even if one of them failed. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9f6b0b21f00ca6..762913bf7b1a95 100644 --- a/Makefile +++ b/Makefile @@ -885,7 +885,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 ) \