-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
60 lines (59 loc) · 1.07 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
default_install_hook_types:
- pre-commit
- commit-msg
exclude: "(.idea|vendor)"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
#
# Go Build
#
- id: go-build-mod
#
# Go Mod Tidy
#
- id: go-mod-tidy
#
# Go Test
#
- id: go-test-mod
#
# Go Vet
#
# Revive
#
- id: go-revive
#
# GoSec
#
- id: go-sec-mod
#
# StaticCheck
#
- id: go-staticcheck-mod
#
# StructSlop
#
- id: go-structslop-mod
#
# Formatters
#
- id: go-fmt
- id: go-imports
#
# Style Checkers
#
- id: go-critic
#
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.1.1
hooks:
- id: conventional-pre-commit
stages: [commit-msg]