Skip to content

Commit

Permalink
exchange cyclop for gocyclo because its better maintained
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wiesinger <[email protected]>
  • Loading branch information
mowies committed Nov 30, 2022
1 parent 200ddcd commit a7cb2f5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down

0 comments on commit a7cb2f5

Please sign in to comment.