X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=Makefile;h=460550babe20a6dc18bd1e8e65d80a24390cb31a;hb=67a887f432fa175300e6d51069587175dee76e17;hp=c44cce5a8591c0a081e021e876b8e75a89160052;hpb=865e10e6d0d15df04ac6209990394277ba1da2a7;p=open-adventure.git diff --git a/Makefile b/Makefile index c44cce5..460550b 100644 --- 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 @@ -82,7 +83,7 @@ coverage: debug html: advent.html history.html hints.html # README.adoc exists because that filename is magic on GitLab. -DOCS=COPYING NEWS README.adoc TODO advent.adoc history.adoc notes.adoc hints.adoc advent.6 INSTALL.adoc +DOCS=COPYING NEWS README.adoc advent.adoc history.adoc notes.adoc hints.adoc advent.6 INSTALL.adoc TESTFILES=tests/*.log tests/*.chk tests/README tests/decheck tests/Makefile # Can't use GNU tar's --transform, needs to build under Alpine Linux. @@ -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