|
5 | 5 | types: [go] |
6 | 6 | exclude: '(^|/)vendor/' |
7 | 7 | language: 'script' |
8 | | - description: "Runs `gofmt`. Requires golang" |
| 8 | + description: "Runs `gofmt`. Requires golang: https://go.dev/doc/install" |
9 | 9 | pass_filenames: true |
10 | 10 | - id: go-imports |
11 | 11 | name: 'goimports' |
12 | 12 | entry: pre-commit-hooks/go-imports.sh |
13 | 13 | types: [go] |
14 | 14 | exclude: '(^|/)vendor/' |
15 | 15 | language: 'script' |
16 | | - description: "Runs `goimports`. Requires golang and goimports" |
| 16 | + description: "Runs `goimports`. Requires goimports: https://pkg.go.dev/golang.org/x/tools/cmd/goimports" # yamllint disable-line rule:line-length |
17 | 17 | pass_filenames: true |
18 | 18 | - id: go-vet |
19 | 19 | name: 'go vet' |
20 | 20 | entry: pre-commit-hooks/go-vet.sh |
21 | 21 | types: [go] |
22 | 22 | exclude: '(^|/)vendor/' |
23 | 23 | language: 'script' |
24 | | - description: "Runs `go vet`. Requires golang" |
| 24 | + description: "Runs `go vet`. Requires golang: https://go.dev/doc/install" |
25 | 25 | pass_filenames: true |
26 | 26 | - id: go-lint |
27 | 27 | name: 'golint' |
28 | 28 | entry: pre-commit-hooks/go-lint.sh |
29 | 29 | types: [go] |
30 | 30 | exclude: '(^|/)vendor/' |
31 | 31 | language: 'script' |
32 | | - description: "Runs `golint`. Requires golang and golint" |
| 32 | + description: "[DEPRECATED] Runs `golint`. Requires golint: https://github.com/golang/lint" # yamllint disable-line rule:line-length |
33 | 33 | pass_filenames: true |
34 | 34 | - id: golangci-lint |
35 | 35 | name: 'golangci-lint' |
36 | 36 | entry: pre-commit-hooks/golangci-lint.sh |
37 | 37 | types: [go] |
38 | 38 | exclude: '(^|/)vendor/' |
39 | 39 | language: 'script' |
40 | | - description: "Runs `golangci-lint`. Requires golangci-lint" |
| 40 | + description: "Runs `golangci-lint`. Requires golangci-lint: https://github.com/golangci/golangci-lint" # yamllint disable-line rule:line-length |
41 | 41 | pass_filenames: true |
42 | 42 | - id: go-critic |
43 | 43 | name: "gocritic" |
44 | 44 | entry: pre-commit-hooks/go-critic.sh |
45 | 45 | types: [go] |
46 | 46 | exclude: '(^|/)vendor/' |
47 | 47 | language: 'script' |
48 | | - description: "Runs `gocritic`. Requires gocritic" |
| 48 | + description: "Runs `gocritic`. Requires gocritic: https://github.com/go-critic/go-critic" # yamllint disable-line rule:line-length |
49 | 49 | pass_filenames: true |
50 | 50 | - id: go-unit-tests |
51 | 51 | name: 'go test' |
52 | 52 | entry: pre-commit-hooks/go-unit-tests.sh |
53 | 53 | types: [go] |
54 | 54 | exclude: '(^|/)vendor/' |
55 | 55 | language: 'script' |
56 | | - description: "Runs `go test`" |
| 56 | + description: "Runs `go test`. Requires golang: https://go.dev/doc/install" |
57 | 57 | pass_filenames: false |
58 | 58 | - id: go-build |
59 | 59 | name: 'go build' |
60 | 60 | entry: pre-commit-hooks/go-build.sh |
61 | 61 | types: [go] |
62 | 62 | language: 'script' |
63 | | - description: "Runs `go build`" |
| 63 | + description: "Runs `go build`. Requires golang: https://go.dev/doc/install" |
64 | 64 | pass_filenames: false |
65 | 65 | - id: go-generate |
66 | 66 | name: 'go generate' |
67 | 67 | entry: pre-commit-hooks/go-build.sh |
68 | 68 | types: [go] |
69 | 69 | language: 'script' |
70 | | - description: "Runs `go generate`" |
| 70 | + description: "Runs `go generate`. Requires golang: https://go.dev/doc/install" |
71 | 71 | pass_filenames: true |
72 | 72 | - id: go-mod-tidy |
73 | 73 | name: 'go mod tidy' |
74 | 74 | entry: pre-commit-hooks/go-mod-tidy.sh |
75 | 75 | types: [go] |
76 | 76 | language: 'script' |
77 | | - description: "Runs `go mod tidy -v`" |
| 77 | + description: "Runs `go mod tidy -v`. Requires golang: https://go.dev/doc/install" # yamllint disable-line rule:line-length |
78 | 78 | pass_filenames: true |
79 | 79 | - id: go-mod-vendor |
80 | 80 | name: 'go mod vendor' |
81 | 81 | entry: pre-commit-hooks/go-mod-vendor.sh |
82 | 82 | types: [go] |
83 | 83 | language: 'script' |
84 | | - description: "Runs `go mod vendor`" |
| 84 | + description: "Runs `go mod vendor`. Requires golang: https://go.dev/doc/install" # yamllint disable-line rule:line-length |
85 | 85 | pass_filenames: false |
0 commit comments