-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
128 lines (128 loc) · 3.25 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
---
default_language_version:
# force all unspecified python hooks to run python3
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-yaml
exclude: "charts/.*"
args:
- --allow-multiple-documents
- id: detect-aws-credentials
args:
- --allow-missing-credentials
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: no-commit-to-branch
args:
- --pattern
- '^(?!((fix|feature|refactor)\/[a-zA-Z0-9\-]+)$).*'
- id: trailing-whitespace
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.42.1
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.20
hooks:
- id: helmlint
- repo: https://github.com/gherynos/pre-commit-java
rev: v0.2.4
hooks:
- id: checkstyle
args:
- -c
- google_checks.xml
exclude: ".*/src/test/.*"
- id: cpd
exclude: ".*/src/test/.*"
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: forbid-binary
exclude: ".*.(png|jpg|jpeg)$"
- id: shellcheck
args:
- -a
- -x
- -P
- SCRIPTDIR
- id: script-must-have-extension
- id: script-must-not-have-extension
- id: shfmt
args:
- -l
- -i
- "2"
- -ci
- repo: https://github.com/markdownlint/markdownlint
rev: v0.12.0
hooks:
- id: markdownlint
exclude: "^(.*/*/app-readme.md|.*/*/README.md)"
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.38.0
hooks:
- id: eslint
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
hooks:
- id: forbid-tabs
exclude: "^(.*/?Makefile|.*.mk|.*.go)$"
- repo: https://github.com/doublify/pre-commit-go
rev: 208a4aaa7f86b44e961eaaea526743b920e187a0
hooks:
- id: fmt
- id: vet
- id: fix
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- id: cargo-check
- repo: https://github.com/adrienverge/yamllint
rev: v1.30.0
hooks:
- id: yamllint
exclude: ".*/templates/.*"
args:
- -c
- .yamllint-config.yaml
- repo: https://github.com/IamTheFij/docker-pre-commit
rev: v2.1.1
hooks:
- id: docker-compose-check
files: docker-compose.*y[a]{0,1}ml$
- id: docker-compose-check
files: "^docker/.*yaml$"
- id: hadolint
files: ".*.docker$"
args:
- --ignore
- DL3008
- --ignore
- DL3013
- id: hadolint
files: "Dockerfile.*"
args:
- --ignore
- DL3008
- --ignore
- DL3013
- repo: https://gitlab.com/daverona/pre-commit/cpp
rev: 0.8.0
hooks:
- id: docker-clang-format
- id: cpplint
- id: docker-cppcheck
args:
- --force