Skip to content

Commit e657884

Browse files
committed
Add checks with gocyclo
1 parent 737701d commit e657884

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ test:
2424
stdout=$$(gofumpt -l . 2>&1); if [ "$$stdout" ]; then exit 1; fi
2525
go vet ./...
2626
misspell -error $(GO_FILES)
27+
gocyclo -over 10 $(GO_FILES)
2728
staticcheck ./...
2829
errcheck -exclude errcheck_excludes.txt ./...
2930
gocritic check -disable='#experimental,#opinionated' [email protected] 3 ./...
@@ -36,6 +37,7 @@ test:
3637
.PHONY: setup
3738
setup:
3839
go install github.com/client9/misspell/cmd/misspell@latest
40+
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest
3941
go install github.com/go-critic/go-critic/cmd/gocritic@latest
4042
go install github.com/kisielk/errcheck@latest
4143
go install github.com/mgechev/revive@latest

0 commit comments

Comments
 (0)