Skip to content

Commit 3f9afc0

Browse files
committed
internal cppcheck runner
1 parent 39f5074 commit 3f9afc0

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.cppcheck/cppcheck.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
# before first commit, set the script as executable to git:
4+
# git update-index --chmod=+x .cppcheck/cppcheck.sh
5+
6+
exec cppcheck \
7+
--enable=warning,style,performance \
8+
--inconclusive \
9+
--inline-suppr \
10+
--force \
11+
--check-level=exhaustive \
12+
--suppress=missingIncludeSystem \
13+
--suppressions-list=./.cppcheck/cppcheck.suppress \
14+
--error-exitcode=1 \
15+
.

.cppcheck/cppcheck.suppress

Whitespace-only changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: cppcheck
2+
3+
on: [push]
4+
5+
jobs:
6+
cppcheck:
7+
runs-on: docker
8+
container:
9+
image: node:20-alpine
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Install cppcheck
14+
run: |
15+
apk add --no-cache cppcheck
16+
17+
- name: Run cppcheck
18+
run: |
19+
./.cppcheck/cppcheck.sh

0 commit comments

Comments
 (0)