From e657884326b0edd7fc418d7a26ae828c5942875a Mon Sep 17 00:00:00 2001 From: eikendev Date: Sat, 15 Feb 2025 14:31:49 +0100 Subject: [PATCH] Add checks with gocyclo --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 5a0afd4..1acd97a 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ test: stdout=$$(gofumpt -l . 2>&1); if [ "$$stdout" ]; then exit 1; fi go vet ./... misspell -error $(GO_FILES) + gocyclo -over 10 $(GO_FILES) staticcheck ./... errcheck -exclude errcheck_excludes.txt ./... gocritic check -disable='#experimental,#opinionated' -@ifElseChain.minThreshold 3 ./... @@ -36,6 +37,7 @@ test: .PHONY: setup setup: go install github.com/client9/misspell/cmd/misspell@latest + go install github.com/fzipp/gocyclo/cmd/gocyclo@latest go install github.com/go-critic/go-critic/cmd/gocritic@latest go install github.com/kisielk/errcheck@latest go install github.com/mgechev/revive@latest