File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ # golang-pre-commit
2+
3+ This is a collection of golang [ pre-commit] ( http://pre-commit.com/ ) hooks.
4+ ## Usage
5+
6+ ``` yaml
7+ - repo : https://github.com/bhundven/golang-pre-commit.git
8+ rev : v1.0.0
9+ hooks :
10+ ` ` `
11+
12+ ## Available Hooks
13+
14+ * ` go-fmt` - Runs `gofmt`. Requires golang
15+ * `go-imports` - Runs `goimports`. Requires golang and goimports
16+ * `go-vet` - Runs `go vet`. Requires golang
17+ * `go-lint` - Runs `golint`. Requires golang and golint
18+ * `golangci-lint` - Runs `golangci-lint`. Requires golangci-lint
19+ * `go-critic` - Runs `gocritic`. Requires gocritic
20+ * `go-unit-tests` - Runs `go test`
21+ * `go-build` - Runs `go build`
22+ * `go-generate` - Runs `go generate`
23+ * `go-mod-tidy` - Runs `go mod tidy -v`
24+ * `go-mod-vendor` - Runs `go mod vendor`
You can’t perform that action at this time.
0 commit comments