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:
Slavi Pantaleev
2022-08-26 10:34:13 +03:00
parent 698cb6b8b9
commit 58a1fa6b3f

View File

@@ -83,6 +83,7 @@ issues:
- path: _test\.go
linters:
- gocyclo
- gocognit
- errcheck
- dupl
- gosec