Skip to content

Commit

Permalink
Merge pull request #70 from atc0005/i62-add-complexity-check-linters
Browse files Browse the repository at this point in the history
golangci-lint | Add gocognit, gocycle to unstable
  • Loading branch information
atc0005 authored Sep 2, 2020
2 parents 7dd5493 + cd4d597 commit f3a4254
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions unstable/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ linters:
- dogsled
- dupl
- errcheck
- gocognit
- goconst
- gocritic
- gocyclo
- goerr113
- gofmt
- goimports
Expand All @@ -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

0 comments on commit f3a4254

Please sign in to comment.