-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-hooks.yaml
60 lines (60 loc) · 1.57 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
- id: errcheck
name: errcheck
entry: go-pre-commit errcheck
files: '\.go$'
language: system
description: Check your Go source code with errcheck
- id: go-fmt-goimports
name: go-fmt-goimports
entry: go-pre-commit go-fmt-goimports
files: '\.go$'
language: system
description: Format your Go code with go fmt and goimports
- id: go-test
name: go-test
entry: go-pre-commit go-test
files: '\.go$'
language: system
description: Run your Go unit tests
- id: go-vet
name: go-vet
entry: go-pre-commit go-vet
files: '\.go$'
language: system
description: Check your Go source with go vet
- id: gofumports
name: gofumports
entry: go-pre-commit gofumports
files: '\.go$'
language: system
description: Format your Go code with gofumports
- id: gofumpt
name: gofumpt
entry: go-pre-commit gofumpt
files: '\.go$'
language: system
description: Format your Go code with gofumpt
- id: golangci-lint
name: golangci-lint
entry: go-pre-commit golangci-lint
files: '\.go$'
language: system
description: Check your Go code with golangci-lint
- id: golint
name: golint
entry: go-pre-commit golint
files: '\.go$'
language: system
description: Check your Go code with golint
- id: staticcheck
name: staticcheck
entry: go-pre-commit staticcheck
files: '\.go$'
language: system
description: Check your Go code with staticcheck
- id: go-mod-tidy
name: go-mod-tidy
entry: go-pre-commit go-mod-tidy
files: ''
language: system
description: Prune no-longer required commits from go.mod