-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-hooks.yaml
49 lines (43 loc) · 1.11 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
- id: go-fmt
name: "go fmt"
entry: run-go-fmt.sh
files: '\.go$'
language: "script"
description: "Runs `gofmt`, it requires golang"
- id: go-imports
name: "go imports"
entry: run-go-imports.sh
files: '\.go$'
language: "script"
description: "Runs `goimports`, it requires goimports"
- id: go-vet
name: "go vet"
entry: run-go-vet.sh
files: '\.go$'
language: "script"
description: "Runs `go vet`, it requires golang"
- id: golangci-lint
name: "golangci-lint"
entry: run-golangci-lint.sh
types: [go]
language: "script"
pass_filenames: false
description: "Runs `golangci-lint`, it requires https://github.com/golangci/golangci-lint"
- id: go-test
name: "go-test"
entry: run-go-test.sh
files: '\.go$'
language: "script"
description: "Runs `go test`, it requires golang"
- id: go-mod-tidy
name: "go-mod-tidy"
entry: run-go-mod-tidy.sh
files: '\.go$'
language: "script"
description: "Runs `go mod tidy -v`, it requires golang"
- id: go-build
name: "go-build"
entry: run-go-build.sh
files: '\.go$'
language: "script"
description: "Runs `go build`, it requires golang"