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