forked from acquire-project/acquire-driver-egrabber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
41 lines (39 loc) · 1.3 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
37
38
39
40
41
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-format
args: ["-i"]
- id: clang-tidy
args: ["-p=build"]
# I'd love cppcheck to be included in the precommit by default but:
#
# - it requires hard-coding the build directory
# - it's sensitive to the use of `cmake -G Ninja` which isn't the default
# on Windows.
# - it can take a few seconds to run, which is annoying
#
# Feel free to enable it yourself by uncommenting below.
# - id: cppcheck
# args: [
# "--project=build/compile_commands.json",
# "--inline-suppr",
# "-iexamples/common/imgui",
# "--suppress=*:examples/common/imgui/imgui.h",
# "-isrc/devices/cameras/3rdParty",
# "--suppress=constParameter:*",
# "--suppress=useStlAlgorithm:*",
# "--suppress=unusedStructMember:*",
# "--suppress=unusedFunction:*",
# "--suppress=cstyleCast:*",
# ]