X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=Makefile;h=84039b4e8df8a5a698fd77cb30a5d19f4ae66d76;hb=dee8809e3091a9e06f79fcc47f9a38c4183894e5;hp=f8599ea4f0ca42e5b3a9f826f6c0d6b631cd4d6e;hpb=44017d64bb811868e71172af3daa84a1cf7a4012;p=open-adventure.git diff --git a/Makefile b/Makefile index f8599ea..84039b4 100644 --- a/Makefile +++ b/Makefile @@ -136,6 +136,10 @@ debug: CCFLAGS += -fsanitize=address debug: CCFLAGS += -fsanitize=undefined debug: linty -CSUPPRESSIONS = --suppress=missingIncludeSystem --suppress=invalidscanf +PYSUPPRESSIONS = --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