-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
139 lines (139 loc) · 3.71 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
129
130
131
132
133
134
135
136
137
138
139
---
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.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
# - id: check-yaml
- id: check-added-large-files
- id: check-json
- id: check-merge-conflict
- id: detect-aws-credentials
- id: detect-private-key
- id: mixed-line-ending
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.19.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.15
hooks:
- id: helmlint
- repo: https://github.com/gherynos/pre-commit-java
rev: v0.1.0
hooks:
- id: checkstyle
args:
- -c
- google_checks.xml
exclude: ".*/src/test/.*"
- id: cpd
exclude: ".*/src/test/.*"
- id: pmd
exclude: ".*/src/test/.*"
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
hooks:
- id: forbid-binary
exclude: ".*.(png|jpg|jpeg)$"
- id: shellcheck
args:
- -a
- -x
- -e
- SC1072,SC1073
- 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.11.0
hooks:
- id: markdownlint
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.0.0-rc.0
hooks:
- id: eslint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: detect-aws-credentials
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: no-commit-to-branch
args:
- --pattern
- '^(?!((fix|feature)\/[a-zA-Z0-9\-]+)$).*'
- id: trailing-whitespace
- repo: https://github.com/Lucas-C/pre-commit-hooks-go
rev: v1.0.1
hooks:
- id: checkmake
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.10
hooks:
- id: forbid-tabs
exclude: "^(.*/?Makefile|.*.mk|.*.go)$"
- repo: git://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.26.3
hooks:
- id: yamllint
exclude: ".*/templates/.*"
- repo: https://github.com/IamTheFij/docker-pre-commit
rev: v2.0.1
hooks:
- id: docker-compose-check
files: docker-compose.*y[a]{0,1}ml$
- id: docker-compose-check
files: "^docker/.*yaml$"
- repo: https://gitlab.com/daverona/pre-commit/cpp
rev: 0.8.0 # use the most recent version
hooks:
# - id: docker-clang-format
- id: docker-cppcheck # cppcheck in Docker container
args:
- --force
# - id: insert-license
#files: \.js$
#args:
#- --license-filepath
#- COPYRIGHT
#- --comment-style
#- /*| *| */
# - id: insert-license
# files: \.yaml$
#args:
#- --license-filepath
#- COPYRIGHT
#- --comment-style
#- #
#- repo: https://github.com/doublify/pre-commit-clang-format
# rev: master
# hooks:
# - id: clang-format