From b1549ccda3354bd15d612dc313822c4e98a8e1e1 Mon Sep 17 00:00:00 2001 From: Ryuta Kambe Date: Tue, 2 Jul 2024 09:33:10 +0900 Subject: [PATCH] chore(ci): add inline suppressions to cppcheck (#7775) * chore(ci): add inline suppressions to cppcheck Signed-off-by: Ryuta Kambe * test Signed-off-by: Ryuta Kambe * test Signed-off-by: Ryuta Kambe * style(pre-commit): autofix * test Signed-off-by: Ryuta Kambe * test Signed-off-by: Ryuta Kambe * restore Signed-off-by: Ryuta Kambe --------- Signed-off-by: Ryuta Kambe Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/cppcheck-daily.yaml | 2 +- .github/workflows/cppcheck-differential.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cppcheck-daily.yaml b/.github/workflows/cppcheck-daily.yaml index 03ea75105b360..34779b586bd6e 100644 --- a/.github/workflows/cppcheck-daily.yaml +++ b/.github/workflows/cppcheck-daily.yaml @@ -22,7 +22,7 @@ jobs: continue-on-error: true id: cppcheck run: | - cppcheck --enable=all --inconclusive --check-level=exhaustive --suppress=*:*/test/* --error-exitcode=1 --xml . 2> cppcheck-report.xml + cppcheck --enable=all --inconclusive --check-level=exhaustive --suppress=*:*/test/* --error-exitcode=1 --xml --inline-suppr . 2> cppcheck-report.xml shell: bash - name: Count errors by error ID and severity diff --git a/.github/workflows/cppcheck-differential.yaml b/.github/workflows/cppcheck-differential.yaml index 7fe37ea006596..264cabefae677 100644 --- a/.github/workflows/cppcheck-differential.yaml +++ b/.github/workflows/cppcheck-differential.yaml @@ -43,7 +43,7 @@ jobs: id: cppcheck run: | echo "Running Cppcheck on changed files: ${{ steps.get-changed-files.outputs.changed-files }}" - cppcheck --enable=all --inconclusive --check-level=exhaustive --error-exitcode=1 --suppressions-list=.cppcheck_suppressions ${{ steps.get-changed-files.outputs.changed-files }} 2> cppcheck-report.txt + cppcheck --enable=all --inconclusive --check-level=exhaustive --error-exitcode=1 --suppressions-list=.cppcheck_suppressions --inline-suppr ${{ steps.get-changed-files.outputs.changed-files }} 2> cppcheck-report.txt shell: bash - name: Show cppcheck-report result