Skip to content

Commit

Permalink
feat: cppcheck static analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
jahan-addison committed Dec 14, 2024
1 parent 814bd39 commit 07684db
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,15 @@ jobs:
- name: build
run: cmake --build build -j4

- name: cppcheck static analysis
uses: deep5050/cppcheck-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
enable: all
force_language: c++
std: c++20
other_options: |
--suppressions-list=./cppcheck.suppress
- name: run
run: ./build/roxas
11 changes: 11 additions & 0 deletions cppcheck.suppress
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Just a report of how many checkers are run
checkersReport

// This just warns that cppcheck isn't exhaustive and it still appears in exhaustive mode
normalCheckLevelMaxBranches

// cppcheck 2.11 can't find system headers on Win32.
missingIncludeSystem

# Causes false positives
unusedStructMember

0 comments on commit 07684db

Please sign in to comment.