From 8ab989ab53d4d015776c8d72cc2d807ac2455810 Mon Sep 17 00:00:00 2001 From: jgromes Date: Fri, 31 Jan 2025 18:25:38 +0100 Subject: [PATCH] [CI] Add helper script to cppcheck single path --- extras/cppcheck/check_file.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 extras/cppcheck/check_file.sh diff --git a/extras/cppcheck/check_file.sh b/extras/cppcheck/check_file.sh new file mode 100755 index 00000000..a560cd33 --- /dev/null +++ b/extras/cppcheck/check_file.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +if [[ $@ -lt 1 ]]; then + echo "Usage: $0 " + exit 1 +fi + +path=$1 + +cppcheck --version +cppcheck $path --enable=all \ + --force \ + --inline-suppr \ + --suppress=ConfigurationNotChecked \ + --suppress=unusedFunction \ + --suppress=missingIncludeSystem \ + --suppress=missingInclude \ + --quiet