generated from eclipse-velocitas/vehicle-app-cpp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
35 lines (35 loc) · 1.06 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
fail_fast: false
repos:
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-format
args: ["--style=file", "--version=14"]
- id: clang-tidy
args:
[
"--version=14",
"--checks=-*",
"--config-file=.clang-tidy",
"--format-style=file",
]
- id: cpplint
args: ["--recursive"]
- id: cppcheck
args: [
"--project=build/compile_commands.json",
"--language=c++",
"--std=c++17",
"--error-exitcode=1",
"--enable=all",
"--suppress=noExplicitConstructor",
"--suppress=missingInclude",
"--suppress=unusedFunction",
"--suppress=uninitMemberVar",
"--suppress=unmatchedSuppression",
# suppress all warnings for generated code
"--suppress=*:build/*",
"--suppress=*:app/vehicle_model/*",
"--suppress=*:examples/vehicle_model/*",
"--suppress=*:/*/.conan/*"
]