Skip to content

Commit e803ff3

Browse files
committed
WIP: mod: helper.mk (cppcheck)
Signed-off-by: Philippe Coval <[email protected]>
1 parent 9a44047 commit e803ff3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

helper.mk

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ project_docs_api_target?=zpc_doxygen
1919
version?=$(shell git describe --tags --always 2> /dev/null || echo "0")
2020

2121
# Allow overloading from env if needed
22+
SHELL=/bin/bash -o pipefail
23+
2224
# VERBOSE?=1
2325
BUILD_DEV_GUI?=OFF
2426
BUILD_IMAGE_PROVIDER?=ON
@@ -40,6 +42,7 @@ packages+=python3-defusedxml # For extract_get.py
4042
# TODO: remove for offline build
4143
packages+=curl wget python3-pip
4244
packages+=expect
45+
packages+=cppcheck
4346

4447
# For docs
4548
packages+=graphviz
@@ -242,7 +245,12 @@ ${build_dir}: ${build_dir}/CMakeCache.txt
242245
test: ${build_dir}
243246
ctest --test-dir ${<}/${project_test_dir}
244247

245-
check: test
248+
cppcheck:
249+
$@ --version
250+
$@ --quiet -i "${build_dir}" --error-exitcode=1 . | tr -d '[:cntrl:]' # pipefail
251+
252+
check: cppcheck test
253+
246254

247255
zwa_project?=z-wave-stack-binaries
248256
zwa_ver?=25.1.0-28-g7e0b50f

0 commit comments

Comments
 (0)