File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -677,7 +677,16 @@ cpplint:
677677
678678lint : jslint cpplint
679679
680+ CONFLICT_RE =^>>>>>>> [0-9A-Fa-f]+|^<<<<<<< [A-Za-z]+
680681lint-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
681690
682691.PHONY : lint cpplint jslint bench clean docopen docclean doc dist distclean \
683692 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
342342:jslint
343343if not defined jslint goto exit
344344echo running jslint
345- <<<<<<< d1e2db2a13ddc9fb2f8cd1400b52656910d7374f
346345%config% \node tools\eslint\bin\eslint.js benchmark lib src test tools --rulesdir tools\eslint-rules
347346goto exit
348347
You can’t perform that action at this time.
0 commit comments