-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
59 lines (59 loc) · 1.34 KB
/
.pre-commit-config.yaml
File metadata and controls
59 lines (59 loc) · 1.34 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
fail_fast: false
repos:
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.30.0
hooks:
- id: check-github-actions
- id: check-github-workflows
- repo: https://github.com/petalmd/dockerfile-pre-commit
rev: v1.0
hooks:
- id: dockerlint
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.10
hooks:
- id: cmake-format
- id: cmake-lint
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.3
hooks:
- id: clang-format
types_or: [c++]
- repo: local
hooks:
- id: cppcheck
name: cppcheck
entry: cppcheck
language: system
args:
[
--clang=clang,
--language=c++,
--std=c++20,
--enable=all,
--suppress=unusedFunction,
--suppress=unmatchedSuppression,
--suppress=missingIncludeSystem,
--suppress=toomanyconfigs,
--error-exitcode=1,
]
files: \.(h|cpp)$
- id: include-what-you-use
name: include-what-you-use
entry: iwyu_tool
language: system
args:
[
-p=build
]
files: \.(h|cpp)$
- id: clang-tidy
name: clang-tidy
entry: clang-tidy
language: system
args:
[
--fix-notes,
-p=build
]
files: \.(h|cpp)$