Commit Graph

3 Commits

Author SHA1 Message Date
Slavi Pantaleev
58a1fa6b3f 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.
2022-08-27 07:50:43 +03:00
Aine
85fc06cfce lint; rearrange code 2022-08-23 22:12:11 +03:00
Aine
c4b7a16e21 wip 2022-08-21 18:41:35 +03:00