diff --git a/.codechecker-skip.txt b/.codechecker-skip.txt new file mode 100644 index 0000000..2c04262 --- /dev/null +++ b/.codechecker-skip.txt @@ -0,0 +1 @@ +-*lib/LittleVGL/src/* diff --git a/.github/workflows/cppcheck.yaml b/.github/workflows/cppcheck.yaml index 6826325..6f3618a 100644 --- a/.github/workflows/cppcheck.yaml +++ b/.github/workflows/cppcheck.yaml @@ -32,18 +32,13 @@ jobs: working-directory: "build" - name: "Run CodeChecker" - run: "codechecker analyze compile_commands.json -o results" + run: "codechecker analyze compile_commands.json -o results --ignore ../.codechecker-skip.txt" working-directory: "build" - name: "Generate HTML reports" run: "codechecker parse -e html ./results -o ./report" working-directory: "build" - - name: "Dump report to stderr" - run: "codechecker parse --print-steps ./results" - working-directory: "build" - continue-on-error: true - - name: "Save HTML reports to artifact" uses: "actions/upload-artifact@v2" with: @@ -51,3 +46,7 @@ jobs: path: "build/report" retion-days: 30 + - name: "Dump report to stderr" + run: "codechecker parse --print-steps ./results" + working-directory: "build" +