Do not check cognitive complexity in unit tests
Works around: > utils/user_test.go:5:1: cognitive complexity 18 of func `TestRuleToRegex` is high (> 15) (gocognit) Alternatively, we may look for a way to skip this test only. It doesn't seem complex at all, so it looks like some false-positive.
This commit is contained in:
parent
698cb6b8b9
commit
58a1fa6b3f
1 changed files with 1 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ issues:
|
||||||
- path: _test\.go
|
- path: _test\.go
|
||||||
linters:
|
linters:
|
||||||
- gocyclo
|
- gocyclo
|
||||||
|
- gocognit
|
||||||
- errcheck
|
- errcheck
|
||||||
- dupl
|
- dupl
|
||||||
- gosec
|
- gosec
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue