Browse Source

build: add conflict marker check during CI lint

PR-URL: https://github.com/nodejs/node/pull/7625
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
v4.x
Brian White 8 years ago
committed by Myles Borins
parent
commit
7766997f7e
  1. 9
      Makefile
  2. 1
      vcbuild.bat

9
Makefile

@ -677,7 +677,16 @@ cpplint:
lint: jslint cpplint
CONFLICT_RE=^>>>>>>> [0-9A-Fa-f]+|^<<<<<<< [A-Za-z]+
lint-ci: lint
@if ! ( grep -IEqrs "$(CONFLICT_RE)" benchmark deps doc lib src test tools ) \
&& ! ( find . -maxdepth 1 -type f | xargs grep -IEqs "$(CONFLICT_RE)" ); then \
exit 0 ; \
else \
echo "" >&2 ; \
echo "Conflict marker detected in one or more files. Please fix them first." >&2 ; \
exit 1 ; \
fi
.PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean \
check uninstall install install-includes install-bin all staticlib \

1
vcbuild.bat

@ -342,7 +342,6 @@ goto jslint
:jslint
if not defined jslint goto exit
echo running jslint
<<<<<<< d1e2db2a13ddc9fb2f8cd1400b52656910d7374f
%config%\node tools\eslint\bin\eslint.js benchmark lib src test tools --rulesdir tools\eslint-rules
goto exit

Loading…
Cancel
Save