Skip to content

Commit c70ad30

Browse files
committed
analysis
Signed-off-by: Anton Dukhovnikov <[email protected]>
1 parent 47cee92 commit c70ad30

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/analysis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,14 @@ jobs:
7676
id: codechecker
7777
with:
7878
logfile: ${{ github.workspace }}/build/compile_commands.json
79-
diff: ${{ github.event_name == 'push' }}
80-
diff-url: 'file:///home/runner/work/rawtoaces/rawtoaces/tests/static_analysis/snapshot'
79+
config: '/home/runner/work/rawtoaces/rawtoaces/tests/static_analysis/codechecker.json'
8180

8281
- uses: actions/upload-artifact@v4
8382
if: ${{ steps.codechecker.outputs.warnings-in-diff == 'true' }}
8483
with:
8584
name: "CodeChecker Bug Reports"
86-
# path: ${{ steps.codechecker.outputs.result-html-dir }}
87-
path: ${{ steps.codechecker.outputs.diff-html-dir }}
85+
path: ${{ steps.codechecker.outputs.result-html-dir }}
86+
# path: ${{ steps.codechecker.outputs.diff-html-dir }}
8887

8988
- uses: actions/upload-artifact@v4
9089
if: false # set to `true` to write out the raw output for diff-ing
@@ -93,5 +92,5 @@ jobs:
9392
path: ${{ steps.codechecker.outputs.analyze-output }}
9493

9594
- name: "Break build if CodeChecker reported any findings"
96-
if: ${{ steps.codechecker.outputs.warnings_in_diff == 'true' }}
95+
if: ${{ steps.codechecker.outputs.warnings == 'true' }}
9796
run: exit 1
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"analyze": [
3+
"--skip=skipfile.txt"
4+
]
5+
}

tests/static_analysis/skipfile.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/usr/include/OpenImageIO/detail/fmt/format.h
2+
/usr/lib/llvm-22/lib/clang/22/include/cetintrin.h

0 commit comments

Comments
 (0)