Przeglądaj źródła

added cppcheck call - requires cppcheck > 1.88

prozessorkern 5 lat temu
rodzic
commit
af8fea78da
1 zmienionych plików z 6 dodań i 0 usunięć
  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: