Bladeren bron

added cppcheck call - requires cppcheck > 1.88

prozessorkern 5 jaren geleden
bovenliggende
commit
af8fea78da
1 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 6 0
      makefile

+ 6 - 0
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: