summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-05-14 23:35:29 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-05-14 23:36:01 +0200
commit2f545000acefc74ece1d02d5d1253750170fd44d (patch)
tree653010b98898392e66169d184554021caff060d6
parentb9140ea6e414966e57b48876bfafa4d57a93d630 (diff)
Revive tool
-rwxr-xr-x.githooks/pre-commit4
-rw-r--r--go.mod4
-rw-r--r--go.sum6
3 files changed, 9 insertions, 5 deletions
diff --git a/.githooks/pre-commit b/.githooks/pre-commit
index f63ef4a..fee14e8 100755
--- a/.githooks/pre-commit
+++ b/.githooks/pre-commit
@@ -4,10 +4,10 @@ set -ev
gofmt -d -e -s .
go vet ./...
go tool cvet ./...
-go tool staticcheck ./...
go tool gosec -quiet ./...
go tool gocyclo -over 10 -ignore '.*_templ\.go' .
go tool golangci-lint run
go tool govulncheck ./...
-go test ./...
+go tool revive
+go test -race ./...
go mod tidy
diff --git a/go.mod b/go.mod
index 1e748ae..91c7e41 100644
--- a/go.mod
+++ b/go.mod
@@ -145,7 +145,8 @@ require (
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.16 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
- github.com/mgechev/revive v1.7.0 // indirect
+ github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517 // indirect
+ github.com/mgechev/revive v1.9.0 // indirect
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/moricho/tparallel v0.3.2 // indirect
@@ -250,6 +251,7 @@ tool (
github.com/fzipp/gocyclo/cmd/gocyclo
github.com/golangci/golangci-lint/cmd/golangci-lint
github.com/martinlehoux/kagamigo/cmd/cvet
+ github.com/mgechev/revive
github.com/securego/gosec/v2/cmd/gosec
golang.org/x/vuln/cmd/govulncheck
honnef.co/go/tools/cmd/staticcheck
diff --git a/go.sum b/go.sum
index 188f671..69647d0 100644
--- a/go.sum
+++ b/go.sum
@@ -452,8 +452,10 @@ github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6T
github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
-github.com/mgechev/revive v1.7.0 h1:JyeQ4yO5K8aZhIKf5rec56u0376h8AlKNQEmjfkjKlY=
-github.com/mgechev/revive v1.7.0/go.mod h1:qZnwcNhoguE58dfi96IJeSTPeZQejNeoMQLUZGi4SW4=
+github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517 h1:zpIH83+oKzcpryru8ceC6BxnoG8TBrhgAvRg8obzup0=
+github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517/go.mod h1:KQ7+USdGKfpPjXk4Ga+5XxQM4Lm4e3gAogrreFAYpOg=
+github.com/mgechev/revive v1.9.0 h1:8LaA62XIKrb8lM6VsBSQ92slt/o92z5+hTw3CmrvSrM=
+github.com/mgechev/revive v1.9.0/go.mod h1:LAPq3+MgOf7GcL5PlWIkHb0PT7XH4NuC2LdWymhb9Mo=
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db h1:62I3jR2EmQ4l5rM/4FEfDWcRD+abF5XlKShorW5LRoQ=
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0dey0ia/Uv7NcFFVbCLtqEBQbrT4OCwCSKTEv6enCw=
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=