-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
59 lines (59 loc) · 1.78 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_language_version:
# force all unspecified python hooks to run python3
python: python3
repos:
- repo: https://github.com/gherynos/pre-commit-java
rev: v0.2.9 # Use the ref you want to point at
hooks:
- id: checkstyle
exclude: ".*/src/test/.*"
args:
- -c
- build-tools/src/main/resources/checkstyle.xml
- id: cpd
exclude: ".*/src/test/.*"
- id: pmd
exclude: ".*/src/test/.*"
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.45.0 # Use the sha / tag you want to point at
hooks:
- id: eslint
- 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
exclude: "charts/.*"
args:
- --allow-multiple-documents
- id: check-added-large-files
- id: check-json
- id: check-merge-conflict
- id: detect-aws-credentials
args:
- --allow-missing-credentials
- id: detect-private-key
- id: mixed-line-ending
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: markdownlint
- id: shellcheck
- id: script-must-have-extension
- id: script-must-not-have-extension
- id: shfmt
args:
- -i
- "2"
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
hooks:
- id: forbid-tabs
- repo: https://github.com/doublify/pre-commit-clang-format
rev: 62302476d0da01515660132d76902359bed0f782
hooks:
- id: clang-format
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|m|proto|vert)$