mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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>
This commit is contained in:
1 parent
cd9e8e0361
commit
7766997f7e
2 files changed
+9
-1
No files matched your search
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user