File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,27 @@ repos:
2020
2121 - repo : local
2222 hooks :
23+ - id : go-get-update
24+ name : go-get-update
25+ description : Runs go get -u to update dependencies
26+ entry : go get -u ./...
27+ language : golang
28+ pass_filenames : false
29+
30+ - id : go-mod-tidy
31+ name : go-mod-tidy
32+ description : Runs go mod tidy to update go.mod and go.sum
33+ entry : go mod tidy
34+ language : golang
35+ pass_filenames : false
36+
37+ - id : go-fix
38+ name : go-fix
39+ description : Runs go fix to update Go code to the latest version
40+ entry : go fix ./...
41+ language : golang
42+ types : [go]
43+
2344 - id : golangci-lint-config-verify
2445 name : golangci-lint-config-verify
2546 description : Verifies the golangci-lint configuration file
@@ -43,3 +64,11 @@ repos:
4364 types : [go]
4465 language : golang
4566 pass_filenames : false
67+
68+ - id : go-vet
69+ name : go-vet
70+ description : Runs go vet to check for errors
71+ entry : go vet ./...
72+ types : [go]
73+ language : golang
74+ pass_filenames : false
You can’t perform that action at this time.
0 commit comments