From af8fea78dac97ed964f0c6966d5b8fe853cf2d5b Mon Sep 17 00:00:00 2001 From: prozessorkern Date: Sun, 4 Aug 2019 23:17:15 +0200 Subject: [PATCH] added cppcheck call - requires cppcheck > 1.88 --- makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/makefile b/makefile index f77d6f5..11fb82a 100644 --- a/makefile +++ b/makefile @@ -69,6 +69,12 @@ help: test: unittest integrationtest +cppcheck: + - @mkdir -p output/cppcheck/html + cppcheck --addon=/usr/bin/misra.py --enable=all --template=gcc --cppcheck-build-dir=output/cppcheck $(SOURCES) + cppcheck --addon=/usr/bin/misra.py --enable=all --template=gcc --cppcheck-build-dir=output/cppcheck $(SOURCES) --xml 2>output/cppcheck/cppcheck.xml + cppcheck-htmlreport --file=output/cppcheck/cppcheck.xml --title="Shellmatta" --report-dir=output/cppcheck/html + unittest: $(UNITTEST_TARGET) - @mkdir -p output/test/unittest/report @echo running test: