From cd4d5976495bd3c0ad64676ca2cdc07aacf59ffc Mon Sep 17 00:00:00 2001 From: Adam Chalkley Date: Wed, 2 Sep 2020 06:02:02 -0500 Subject: [PATCH] golangci-lint | Add gocognit, gocycle to unstable refs GH-62 --- unstable/.golangci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/unstable/.golangci.yml b/unstable/.golangci.yml index b0795711..4dbbc3d7 100644 --- a/unstable/.golangci.yml +++ b/unstable/.golangci.yml @@ -29,8 +29,10 @@ linters: - dogsled - dupl - errcheck + - gocognit - goconst - gocritic + - gocyclo - goerr113 - gofmt - goimports @@ -44,3 +46,12 @@ linters: - staticcheck - stylecheck - unconvert + +linters-settings: + gocognit: + # minimal code complexity to report, 30 by default (but we recommend 10-20) + min-complexity: 10 + + gocyclo: + # minimal code complexity to report, 30 by default (but we recommend 10-20) + min-complexity: 15