-
Notifications
You must be signed in to change notification settings - Fork 21
/
.pre-commit-config.yaml
69 lines (69 loc) · 1.86 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
---
repos:
- repo: local
hooks:
- id: lint-helm-chart
name: Lint Helm chart
entry: make helm.ct
files: ^chart/
language: system
stages: [commit]
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
stages: [commit]
- id: check-yaml
args: ["-m", "--unsafe"]
stages: [commit]
exclude: ^chart/
- id: mixed-line-ending
args: ["-f", "lf"]
exclude: \.bat$
stages: [commit]
- id: no-commit-to-branch
stages: [commit]
- id: check-added-large-files
stages: [commit]
- id: check-case-conflict
stages: [commit]
- id: check-merge-conflict
stages: [commit]
- id: forbid-new-submodules
stages: [commit]
- id: check-executables-have-shebangs
stages: [commit]
- id: check-symlinks
stages: [commit]
- id: end-of-file-fixer
stages: [commit]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.15.0
hooks:
- id: gitlint
stages: [commit-msg]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.4
hooks:
- id: shellcheck
stages: [commit]
args: ["-e", "SC2211"]
additional_dependencies: []
- id: shfmt
stages: [commit]
args: ["-s", "-i", "2"]
- id: script-must-have-extension
stages: [commit]
- repo: https://github.com/golangci/golangci-lint
rev: v1.43.0
hooks:
- id: golangci-lint
args: ["-c", ".golangci.yml"]
stages: [commit]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v6.0.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']