File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -677,7 +677,16 @@ cpplint:
677
677
678
678
lint : jslint cpplint
679
679
680
+ CONFLICT_RE =^>>>>>>> [0-9A-Fa-f]+|^<<<<<<< [A-Za-z]+
680
681
lint-ci : lint
682
+ @if ! ( grep -IEqrs " $( CONFLICT_RE) " benchmark deps doc lib src test tools ) \
683
+ && ! ( find . -maxdepth 1 -type f | xargs grep -IEqs " $( CONFLICT_RE) " ); then \
684
+ exit 0 ; \
685
+ else \
686
+ echo " " >&2 ; \
687
+ echo " Conflict marker detected in one or more files. Please fix them first." >&2 ; \
688
+ exit 1 ; \
689
+ fi
681
690
682
691
.PHONY : lint cpplint jslint bench clean docopen docclean doc dist distclean \
683
692
check uninstall install install-includes install-bin all staticlib \
Original file line number Diff line number Diff line change @@ -342,7 +342,6 @@ goto jslint
342
342
:jslint
343
343
if not defined jslint goto exit
344
344
echo running jslint
345
- <<<<<<< d1e2db2a13ddc9fb2f8cd1400b52656910d7374f
346
345
%config% \node tools\eslint\bin\eslint.js benchmark lib src test tools --rulesdir tools\eslint-rules
347
346
goto exit
348
347
You can’t perform that action at this time.
0 commit comments