Commit c46aefb5 authored by Martin Heistermann's avatar Martin Heistermann
Browse files

CI/cppcheck: ignore errors from _deps (googletest).

parent 8bb719cd
Pipeline #18210 passed with stage
in 3 minutes and 39 seconds
#!/bin/bash
# Exit script on any error
set -e
set -e
#=====================================
# Color Settings:
......@@ -13,6 +13,7 @@ WARNING='\033[0;93m'
BUILDPATH="build-cppcheck"
mkdir -p "${BUILDPATH}"
cd "${BUILDPATH}"
ABS_BUILDPATH="${pwd}"
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
cd ..
......@@ -30,11 +31,13 @@ echo "Please Wait ..."
# for the public library interface)
cppcheck \
--project=${BUILDPATH}/compile_commands.json \
-i '*/_deps/*' \
--force \
--enable=warning,performance,portability,information,missingInclude \
--suppress=missingIncludeSystem \
--suppress=unmatchedSuppression \
--suppress=missingIncludeSystem \
--inline-suppr \
-U_MSC_VER -DOVM_STATIC_DEFINE=1 -D__PIC__=1 \
--quiet \
2>&1 | tee cppcheck.log
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment