From ec014a9e1c857a1aac5d0755dead01cae2a28fb0 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 5 Jun 2024 12:51:25 +0200 Subject: [PATCH] ci: use --check-level=exhaustive for cppcheck in csmock --- .github/workflows/csmock.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/csmock.yml b/.github/workflows/csmock.yml index 7ed88dce..b842be6d 100644 --- a/.github/workflows/csmock.yml +++ b/.github/workflows/csmock.yml @@ -54,7 +54,7 @@ jobs: run: podman exec -it ${{ env.CI_CONTAINER }} bash -c "rpmbuild -bs --define '_sourcedir .' rpm/sid.spec" - name: Run csmock - run: podman exec -it ${{ env.CI_CONTAINER }} bash -c "csmock --known-false-positives .csmock-kfp.js -o sid-csmock-results.tar.xz -r ${{ env.CSMOCK_CHROOTS }} --tools ${{ env.CSMOCK_TOOLS }} ~/rpmbuild/SRPMS/sid*.src.rpm" + run: podman exec -it ${{ env.CI_CONTAINER }} bash -c "csmock --known-false-positives .csmock-kfp.js --cppcheck-add-flag='--check-level=exhaustive' -o sid-csmock-results.tar.xz -r ${{ env.CSMOCK_CHROOTS }} --tools ${{ env.CSMOCK_TOOLS }} ~/rpmbuild/SRPMS/sid*.src.rpm" - name: Check csmock results run: podman exec -it ${{ env.CI_CONTAINER }} bash -c "tar -xf sid-csmock-results.tar.xz && test -s sid-csmock-results/scan-results-summary.txt && exit 1 || exit 0"