diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-10-24 07:34:00 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-10-24 07:34:00 +0200 |
| commit | 435397de49adc9740bc67416166aba4d0be8ae2a (patch) | |
| tree | 1642dccae517840f3256f35e29e8d7d1802f700f /.githooks/pre-commit | |
| parent | 18476c6cba2d5d2bb3ecf3ad136dacbf41d0360e (diff) | |
feat: Add cmds
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 |
