diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index f053a22d..415c8bf0 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -50,9 +50,11 @@ jobs: REPO: ${{ github.repository }} REPORT_PR_CHANGES_ONLY: false run: | - cppcheck_params="--enable=warning --suppress=internalError" - cppcheck -j4 $cppcheck_params --project=build/compile_commands.json --output-file=analysis.txt + analysis_file="analysis.txt" + cppcheck_params="--check-level=exhaustive --enable=warning --suppress=internalError" + cppcheck -j4 $cppcheck_params --project=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.txt; done - find $(pwd)/reg-lib/cuda/. -name "*.cu" -print0 | while IFS= read -r -d '' file; do cppcheck "$file" $cppcheck_params --language=c++ 2>> analysis.txt; done - python3 ${{ github.workspace }}/.github/code_analysis.py -cc analysis.txt -o false -fk false \ No newline at end of file + 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 + find $(pwd)/reg-lib/cuda/. -name "*.cu" -print0 | while IFS= read -r -d '' file; do cppcheck "$file" $cppcheck_params --language=c++ 2>> $analysis_file; done + cat $analysis_file + python3 ${{ github.workspace }}/.github/code_analysis.py -cc $analysis_file -o false -fk false \ No newline at end of file diff --git a/niftyreg_build_version.txt b/niftyreg_build_version.txt index 1e6fd033..e5a135a5 100644 --- a/niftyreg_build_version.txt +++ b/niftyreg_build_version.txt @@ -1 +1 @@ -444 +445