cmark

My personal build of CMark ✏️

Commit
b1dab7360ee9104e1c81d2010369bb2075811eb7
Parent
4a47e6a34ce136658f790d78c9670efe2415a78e
Author
John MacFarlane <jgm@berkeley.edu>
Date

Add lint target to Makefile

Diffstat

1 file changed, 3 insertions, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified Makefile 4 3 1
diff --git a/Makefile b/Makefile
@@ -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); \