瀏覽代碼

Merge branch 'feature/add_tests_#5' of https://git.shimatta.net/shimatta/shellmatta into feature/add_tests_#5

stefan 4 年之前
父節點
當前提交
cf7ac4d116
共有 1 個文件被更改,包括 6 次插入0 次删除
  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: