-
Notifications
You must be signed in to change notification settings - Fork 9
34 lines (30 loc) · 949 Bytes
/
cppcheck.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: CppCheck Analysis
on: [push]
jobs:
build:
name: cppcheck
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Configure Compilation Database
run: cmake --preset cppcheck
- name: Run CppCheck
uses: deep5050/[email protected]
with:
github_token: ${{secrets.GITHUB_TOKEN}}
enable: 'style'
force: 'enable'
other_options: >-
--suppress=incorrectStringBooleanError
--suppress=cstyleCast
--suppress=variableScope
--suppress=commaSeparatedReturn
--suppress=variableHidingEnum
--suppress=invalidPointerCast
--suppress=invalidscanf
--inline-suppr
-I headers hc common headers unix win32
-ifractint
- name: Print Report
run: cmake -E cat cppcheck_report.txt