diff options
Diffstat (limited to '.githooks/pre-commit')
| -rwxr-xr-x | .githooks/pre-commit | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.githooks/pre-commit b/.githooks/pre-commit new file mode 100755 index 0000000..92a43ad --- /dev/null +++ b/.githooks/pre-commit @@ -0,0 +1,13 @@ +#!/bin/sh +set -ev + +templ generate +gofmt -d -e -s . +go vet ./... +go run ./tools/cvet ./... +staticcheck ./... +gosec -quiet ./... +gocyclo -over 10 -ignore '.*_templ\.go' . +golangci-lint run +go test ./... +go mod tidy
\ No newline at end of file |
