-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
74 lines (72 loc) · 1.58 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v1.5.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v0.8.3
hooks:
#
# Go Build
#
#- id: go-build-mod
#- id: go-build-pkg
#- id: go-build-repo-mod
#- id: go-build-repo-pkg
#
# Go Test
#
- id: go-test-mod
#- id: go-test-pkg
- id: go-test-repo-mod
#- id: go-test-repo-pkg
#
# Go Vet
#
#- id: go-vet
- id: go-vet-mod
#- id: go-vet-pkg
- id: go-vet-repo-mod
#- id: go-vet-repo-pkg
#
# Revive
#
#- id: go-revive
#- id: go-revive-mod
#- id: go-revive-repo-mod
#
# GoSec
#
#- id: go-sec-mod
#- id: go-sec-pkg
#- id: go-sec-repo-mod
#- id: go-sec-repo-pkg
#
# Formatters
#
- id: go-fmt
#- id: go-imports # Replaces go-fmt
#- id: go-returns # Replaces go-imports & go-fmt
#
# Style Checkers
#
- id: go-lint
#- id: go-critic
#
# GolangCI-Lint
# - Fast Multi-Linter
# - Can be configured to replace MOST other hooks
# - Supports repo config file for configuration
# - https://github.com/golangci/golangci-lint
#
#- id: golangci-lint
#- id: golangci-lint-mod
#- id: golangci-lint-pkg
#- id: golangci-lint-repo-mod
#- id: golangci-lint-repo-pkg