Skip to content

Commit

Permalink
Add lint target to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed May 13, 2020
1 parent 4a47e6a commit b1dab73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ libFuzzer:
test/run-cmark-fuzz $(CMARK_FUZZ)

lint: $(BUILDDIR)
errs=0 ; \
for f in `ls src/*.[ch] | grep -v "scanners.c"` ; \
do echo $$f ; clang-tidy -header-filter='^build/.*' -p=build -warnings-as-errors='*' $$f || exit 1 ; done
do echo $$f ; clang-tidy -header-filter='^build/.*' -p=build -warnings-as-errors='*' $$f || errs=1 ; done ; \
exit $$errs

mingw:
mkdir -p $(MINGW_BUILDDIR); \
Expand Down

0 comments on commit b1dab73

Please sign in to comment.