Skip to content

Commit 61febd9

Browse files
committed
Add cppcheck
1 parent c257223 commit 61febd9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/c.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@ jobs:
2222
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323
- name: Set SOURCE_DATE_EPOCH
2424
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> "${GITHUB_ENV}"
25-
- name: Install clang-tidy
25+
- name: Install linters
2626
shell: bash
2727
run: |
2828
sudo apt update -y
29-
sudo apt install clang-tidy
29+
sudo apt install clang-tidy cppcheck splint
3030
- name: Run clang-tidy
3131
shell: bash
3232
run: make clang-tidy
33+
- name: Run cppcheck
34+
shell: bash
35+
run: make cppckeck
3336
- name: Run splint
3437
shell: bash
3538
run: make splint

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ clang-tidy: src/asn1dump.c
99

1010
splint: src/asn1dump.c
1111
splint -checks src/asn1dump.c
12+
13+
cppcheck: src/asn1dump.c
14+
cppcheck --check-level=exhaustive src/asn1dump.c

0 commit comments

Comments
 (0)