Skip to content

Commit

Permalink
Linter Test 28
Browse files Browse the repository at this point in the history
  • Loading branch information
onurulgen committed Feb 13, 2024
1 parent d9bc1a3 commit 354dfbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Code Analysis
on: [pull_request]
on: [push, pull_request]
jobs:
Code-Analysis:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -51,12 +51,12 @@ jobs:
PR_NUMBER: ${{ github.event.pull_request.number }}
REPO: ${{ github.repository }}
REPORT_PR_CHANGES_ONLY: false
IS_PUSH: ${{ github.event_name == 'push' }}
run: |
analysis_file="analysis.txt"
cppcheck_params="--enable=warning --check-level=exhaustive --suppress=internalError --suppress=internalAstError"
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
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
python3 ${{ github.workspace }}/.github/code_analysis.py -cc $analysis_file -o $IS_PUSH -fk false
2 changes: 1 addition & 1 deletion niftyreg_build_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
450
451

0 comments on commit 354dfbd

Please sign in to comment.