-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
59 lines (59 loc) · 1.52 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/golangci/golangci-lint
rev: v1.36.0
hooks:
- id: golangci-lint
# - repo: https://github.com/tekwizely/pre-commit-golang
# rev: v0.8.1
# 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
# # #
# # # 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