Procházet zdrojové kódy

makefile: add cppcheck

Daniele Bartolini před 3 roky
rodič
revize
8f3f12b5a7
1 změnil soubory, kde provedl 7 přidání a 0 odebrání
  1. 7 0
      makefile

+ 7 - 0
makefile

@@ -202,6 +202,13 @@ codespell:
 		--skip "*.ttf.h,*.png,docs/_themes,tools/level_editor/resources/theme/Adwaita" \
 		-q4 # 4: omit warnings about automatic fixes that were disabled in the dictionary.
 
+.PHONY: cppcheck
+cppcheck:
+	@cppcheck src \
+		--enable=all \
+		--suppress=cstyleCast \
+		--suppress=allocaCalled
+
 .PHONY: clean
 clean: clean-samples
 	@echo Cleaning...