From 7d1f3f869c26b6dfb4997258cd4e297b6476bd2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Onur=20=C3=9Clgen?= Date: Mon, 19 Feb 2024 15:39:10 +0000 Subject: [PATCH] Exclude Eigen library from static code analysis --- .github/workflows/analysis.yml | 2 +- niftyreg_build_version.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index ae2d6c3e..5c085d3d 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -53,7 +53,7 @@ jobs: REPORT_PR_CHANGES_ONLY: false run: | analysis_file="analysis.txt" - cppcheck_params="--enable=warning --check-level=exhaustive --inline-suppr --suppress=internalError --suppress=internalAstError" + cppcheck_params="--enable=warning --check-level=exhaustive --inline-suppr --suppress=internalError --suppress=internalAstError --suppress=*:*third-party/eigen3/*" cppcheck -j4 $cppcheck_params --project=$(pwd)/build/compile_commands.json --output-file=$analysis_file # Since cppcheck does not support OpenCL and CUDA, we need to check these files separately find $(pwd)/reg-lib/cl/. -name "*.cl" -print0 | while IFS= read -r -d '' file; do cppcheck "$file" $cppcheck_params --language=c++ 2>> $analysis_file; done diff --git a/niftyreg_build_version.txt b/niftyreg_build_version.txt index 617de7ea..ddabef86 100644 --- a/niftyreg_build_version.txt +++ b/niftyreg_build_version.txt @@ -1 +1 @@ -411 +412