diff --git a/.golangci.yml b/.golangci.yml index 8840cb415a4..17be917fc60 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -10,7 +10,7 @@ linters: - dogsled # Checks assignments with too many blank identifiers (e.g. x, , , _, := f()) - nilnil # Checks that there is no simultaneous return of nil error and an invalid value. - noctx # noctx finds sending http request without context.Context - - cyclop # measure cyclomatic complexity + - gocyclo # measure cyclomatic complexity - gocognit # measure cognitive complexity - funlen # limit function length @@ -21,13 +21,12 @@ issues: text: '//+kubebuilder' - linters: - containedctx + - gocyclo path: _test\.go linters-settings: - cyclop: - max-complexity: 10 - package-average: 0.5 - skip-tests: true + gocyclo: + min-complexity: 10 gocognit: min-complexity: 15 funlen: