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:
@@ -83,6 +83,7 @@ issues:
|
|||||||
- path: _test\.go
|
- path: _test\.go
|
||||||
linters:
|
linters:
|
||||||
- gocyclo
|
- gocyclo
|
||||||
|
- gocognit
|
||||||
- errcheck
|
- errcheck
|
||||||
- dupl
|
- dupl
|
||||||
- gosec
|
- gosec
|
||||||
|
|||||||
Reference in New Issue
Block a user