Skip to content

Commit e16b6e8

Browse files
committedMar 19, 2025·
feat: Add Cppcheck hook for static analysis
Signed-off-by: l.feng <43399351+msclock@users.noreply.github.com>
1 parent 42ceb43 commit e16b6e8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

‎.pre-commit-hooks.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
- id: cppcheck
2+
name: Cppcheck
3+
description: Run cppcheck for static analysis of C/C++ code
4+
entry: cppcheck
5+
args:
6+
- --inconclusive
7+
- --suppress=missingIncludeSystem
8+
- src
9+
language: python
10+
files: \.(cpp|cc|c\+\+|cxx|c)$
11+
types_or:
12+
- c++
13+
- c
14+
require_serial: true

0 commit comments

Comments
 (0)
Please sign in to comment.