From 435397de49adc9740bc67416166aba4d0be8ae2a Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Tue, 24 Oct 2023 07:34:00 +0200 Subject: feat: Add cmds --- .githooks/pre-commit | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 .githooks/pre-commit (limited to '.githooks') 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 -- cgit v1.3