Skip to content

Commit b982e66

Browse files
committed
workflows: count number of Coverity issues
The output of `cov-format-errors --text-output-style multiline` outputs two paragraphs per issue: the first paragraph mentions only the line which triggered the issue, while the second paragraph includes a trace of the analysis through which Coverity concluded that this is an issue. Each paragraph is followed by a single blank line, which we count here. Note that this does not rely on the output format being stable in the long term; the count is merely needed during the transition period of resolving the remaining issues, after which it may be replaced with a check that the output of `cov-format-errors` is empty. This provides the count for #245
1 parent dd7c2cd commit b982e66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/coverity.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
- run: cov-analyze --config config.xml --dir results --concurrency --security --rule --enable-constraint-fpp --enable-fnptr --enable-virtual
6767
- run: cov-format-errors --text-output-style multiline --dir results --filesort --file "$PWD" --strip-path "$PWD" > cov-errors.txt
6868
- run: cat cov-errors.txt
69+
- run: count=$(grep -c '^$' cov-errors.txt) && echo "$(( $count / 2 ))"
6970
- uses: actions/upload-artifact@v3
7071
with:
7172
name: fpga-runtime-for-opencl-${{ github.sha }}-coverity-${{ github.run_id }}

0 commit comments

Comments
 (0)