At this revision, make cppcheck runs clean.
[open-adventure.git] / Makefile
index 49c909ef9fde49a559fbcb0c87839f35c004c730..7521a434dce61e7bd7b45c9d0b50392c5b93947d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -68,6 +68,10 @@ cheat: $(CHEAT_OBJS) dungeon.o
 check: advent cheat
        cd tests; $(MAKE) --quiet
 
+reflow:
+       @clang-format --style="{IndentWidth: 8, UseTab: ForIndentation}" -i $$(find . -name "*.[ch]")
+       @black --quiet *.py
+
 # Requires gcov, lcov, libasan6, and libubsan1
 # The last two are Ubuntu names, might vary on other distributions.
 # After this, run your browser on coverage/open-adventure/index.html
@@ -149,7 +153,7 @@ debug: linty
 
 CSUPPRESSIONS = --suppress=missingIncludeSystem --suppress=invalidscanf
 cppcheck:
-       cppcheck -I. --template gcc --enable=all $(CSUPPRESSIONS) *.[ch]
+       cppcheck -I. --template gcc -UPROP_SET_SEEN --enable=all $(CSUPPRESSIONS) *.[ch]
 
 pylint:
        @pylint --score=n *.py */*.py