We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cdf344 commit a47fd45Copy full SHA for a47fd45
Makefile
@@ -585,6 +585,17 @@ cpplint:
585
586
lint: jslint cpplint
587
588
+CONFLICT_RE=^>>>>>>> [0-9A-Fa-f]+|^<<<<<<< [A-Za-z]+
589
+lint-ci: jslint cpplint
590
+ @if ! ( grep -IEqrs "$(CONFLICT_RE)" benchmark deps doc lib src test tools ) \
591
+ && ! ( find . -maxdepth 1 -type f | xargs grep -IEqs "$(CONFLICT_RE)" ); then \
592
+ exit 0 ; \
593
+ else \
594
+ echo "" >&2 ; \
595
+ echo "Conflict marker detected in one or more files. Please fix them first." >&2 ; \
596
+ exit 1 ; \
597
+ fi
598
+
599
.PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean \
600
check uninstall install install-includes install-bin all staticlib \
601
dynamiclib test test-all test-addons build-addons website-upload pkg \
0 commit comments