-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy path.pre-commit-config.yaml
36 lines (36 loc) · 1.08 KB
/
.pre-commit-config.yaml
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
35
36
exclude: ^(ThirdParty/)|^(.github/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ["--maxkb=500"]
- id: check-json
- id: check-symlinks
- id: check-xml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v18.1.6'
hooks:
- id: clang-format
name: clang-format
args: ["--style=file", "-i"]
description: Format C/C++ code
types_or: [c, c++]
- repo: local
hooks:
- id: cppcheck
name: cppcheck
description: Linting for C/C++ code
language: system
types_or: [c, c++]
entry: cppcheck --error-exitcode=1
stages: [manual]
args: ["--enable=style,information",
"--suppress=useStlAlgorithm",
"--quiet",
"--inline-suppr",
"--template='[{file}:{line}]: ({severity}) ({id}) {message}'"]