-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.pre-commit-hooks.yaml
62 lines (54 loc) · 1.52 KB
/
.pre-commit-hooks.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
- id: go-fmt-import
name: "go import/fmt"
entry: run-go-fmt-import.sh
files: '\.go$'
language: "script"
description: "Runs `goimport,gofmt`, requires golang"
- id: go-vet
name: "go vet"
entry: run-go-vet.sh
files: '\.go$'
language: "script"
description: "Runs `go vet`, requires golang"
- id: go-lint
name: "golint"
entry: run-go-lint.sh
files: '\.go$'
language: "script"
description: "Runs `go lint`, requires golang"
- id: go-unit-tests
name: "go unit test"
entry: run-go-unit-tests.sh
files: '\.go$'
language: "script"
description: "Runs `go test`, requires golang"
- id: gofumpt
name: "gofumpt"
entry: run-go-gofumpt.sh
files: '\.go$'
language: "script"
description: "Runs `gofumpt`, requires github.com/mvdan/gofumpt"
- id: go-err-check
name: "go errcheck"
entry: run-go-err-check.sh
files: '\.go$'
language: "script"
description: "Runs `errcheck`, requires github.com/kisielk/errcheck"
- id: go-static-check
name: "go staticcheck"
entry: run-go-static-check.sh
files: '\.go$'
language: "script"
description: "Runs `staticcheck`, install https://staticcheck.io/docs/"
- id: golangci-lint
name: "go golangci-lint"
entry: run-golangci-lint.sh
files: '\.go$'
language: "script"
description: "Runs `golangci-lint`, install https://github.com/golangci/golangci-lint"
- id: go-ruleguard
name: "go-ruleguard"
entry: run-go-ruleguard.sh
files: '\.go$'
language: "script"
description: "Runs `go-ruleguard`, install https://github.com/quasilyte/go-ruleguard"