Skip to content

Commit

Permalink
Linter Test 22
Browse files Browse the repository at this point in the history
  • Loading branch information
onurulgen committed Feb 12, 2024
1 parent 5a6bf60 commit 292b4d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
2 changes: 1 addition & 1 deletion niftyreg_build_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
444
445

0 comments on commit 292b4d6

Please sign in to comment.