-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
73 lines (70 loc) · 1.47 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-toml
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: no-commit-to-branch
args: [--branch, main, --branch, master]
- id: check-merge-conflict
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
#
# Go Build
#
- id: go-build-repo-mod
always_run: true
verbose: true
#
# Go Test
#
- id: go-test-repo-mod
verbose: true
#
# Go Vet
#
- id: go-vet-repo-mod
always_run: true
verbose: true
#
# StaticCheck
#
- id: go-staticcheck-repo-mod
always_run: true
verbose: true
#
# Go Mod Tidy
#
- id: go-mod-tidy-repo
always_run: true
verbose: true
#
# Formatters
#
- id: go-fmt-repo
always_run: true
verbose: true
- id: go-imports-repo
always_run: true
verbose: true
#
# Custom Hooks
#
- name: go-errcheck-repo
id: my-cmd-repo
args: [ "errcheck", "./..."]
always_run: true
verbose: true
- name: go-make-manifests
id: my-cmd-repo
args: [ "make", "all" ]
always_run: true
verbose: true
- repo: https://github.com/norwoodj/helm-docs
rev: v1.2.0
hooks:
- id: helm-docs