cppcheck cleanup.
[open-adventure.git] / Makefile
index f8599ea4f0ca42e5b3a9f826f6c0d6b631cd4d6e..92e97da6fff4ed32e38abb4b0c62c7b128dff679 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -139,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