mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
build: sync cppcheck targets with CI
Changes: * Use the same command from the cppcheck CI job in the cppcheck target * Add cppcheck-old target based on the cppcheck_old CI job * Call the make targets in CI to avoid duplicating the commands
This commit is contained in:
parent
93d623fdf9
commit
f4f7a814e7
2 changed files with 17 additions and 5 deletions
6
Makefile
6
Makefile
|
|
@ -364,6 +364,12 @@ extras: all
|
|||
|
||||
.PHONY: cppcheck
|
||||
cppcheck: clean
|
||||
$(CPPCHECK) --force --error-exitcode=1 --enable=warning,performance \
|
||||
-i src/firejail/checkcfg.c -i src/firejail/main.c .
|
||||
|
||||
# For cppcheck 1.x; see .github/workflows/check-c.yml
|
||||
.PHONY: cppcheck-old
|
||||
cppcheck-old: clean
|
||||
$(CPPCHECK) --force --error-exitcode=1 --enable=warning,performance .
|
||||
|
||||
.PHONY: scan-build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue