cppcheck cleanup.
[open-adventure.git] / Makefile
index c44cce5a8591c0a081e021e876b8e75a89160052..92e97da6fff4ed32e38abb4b0c62c7b128dff679 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -64,8 +64,9 @@ cheat: $(CHEAT_OBJS) dungeon.o
 check: advent cheat
        cd tests; $(MAKE) --quiet
 
-# After this, run your browser ob coverage/open-adventure/index.html
-# to see coverage results.
+# After this, run your browser on coverage/open-adventure/index.html
+# to see coverage results. Browse coverage/adventure.yaml.html
+# to see symbol coverage over the YAML file.
 coverage: debug
        cd tests; $(MAKE) coverage --quiet
 
@@ -138,3 +139,7 @@ debug: linty
 CSUPPRESSIONS = --suppress=missingIncludeSystem --suppress=invalidscanf
 cppcheck:
        cppcheck -I. --template gcc --enable=all $(CSUPPRESSIONS) *.[ch]
+
+PYSUPPRESSIONS = line-too-long,invalid-name,missing-function-docstring,too-many-lines,too-many-branches,global-statement,multiple-imports,too-many-locals,too-many-statements,too-many-nested-blocks,no-else-return,raise-missing-from,redefined-outer-name,consider-using-in
+pylint:
+       @pylint --score=n --disable=$(PYSUPPRESSIONS) *.py */*.py