Skip to content

Commit

Permalink
Incorporate new linters into CI as well
Browse files Browse the repository at this point in the history
  • Loading branch information
0xg0nz0 committed Apr 22, 2024
1 parent b9702ef commit 67c6815
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,17 @@ jobs:
with:
path: ./sdk
CCN: 15

- name: cppcheck
uses: deep5050/cppcheck-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
enable: style,warning,performance
inline_suppression: true
force_language: c++
std: c++17

- name: flawfinder
uses: david-a-wheeler/[email protected]
with:
arguments: --quiet -S -D --error-level=1 sdk tests
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ repos:
hooks:
- id: cppcheck
name: cppcheck
entry: cppcheck --addon=cert --enable=style,performance --inline-suppr -x c++
entry: cppcheck --addon=cert --enable=style,performance,warning --inline-suppr --std=c++17 -x c++
language: system
files: \.(cc|h)$
pass_filenames: true
Expand Down

0 comments on commit 67c6815

Please sign in to comment.