X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=Makefile;h=92e97da6fff4ed32e38abb4b0c62c7b128dff679;hb=f7d6884dedabaa237056164ec6d90335de8025cb;hp=80ac01f3b4a10c506305cf3ac9c1b72280281553;hpb=bb2b8e0fcad10cf896acd1bfd42267c40f4f21ea;p=open-adventure.git diff --git a/Makefile b/Makefile index 80ac01f..92e97da 100644 --- a/Makefile +++ b/Makefile @@ -64,6 +64,9 @@ cheat: $(CHEAT_OBJS) dungeon.o check: advent cheat cd tests; $(MAKE) --quiet +# 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 @@ -136,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