From f24fcd297176c7a95e999bd34e627bb0f4159c3a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 4 Feb 2024 12:48:33 -0500 Subject: [PATCH] Perform full code validation on every make check. --- Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 7521a43..978d5a8 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,14 @@ clean: cheat: $(CHEAT_OBJS) dungeon.o $(CC) $(CCFLAGS) $(DBX) -o cheat $(CHEAT_OBJS) dungeon.o $(LDFLAGS) $(LIBS) -check: advent cheat +CSUPPRESSIONS = --suppress=missingIncludeSystem --suppress=invalidscanf +cppcheck: + @-cppcheck -I. --quiet --template gcc -UPROP_SET_SEEN --enable=all $(CSUPPRESSIONS) *.[ch] + +pylint: + @-pylint --score=n *.py */*.py + +check: advent cheat pylint cppcheck cd tests; $(MAKE) --quiet reflow: @@ -151,9 +158,3 @@ debug: CCFLAGS += -fsanitize=address debug: CCFLAGS += -fsanitize=undefined debug: linty -CSUPPRESSIONS = --suppress=missingIncludeSystem --suppress=invalidscanf -cppcheck: - cppcheck -I. --template gcc -UPROP_SET_SEEN --enable=all $(CSUPPRESSIONS) *.[ch] - -pylint: - @pylint --score=n *.py */*.py -- 2.31.1