golangci: update linter settings for test files
This commit is contained in:
1 file changed
+7
@@ -214,10 +214,17 @@ issues:
|
|||||||
- gosec
|
- gosec
|
||||||
- funlen
|
- funlen
|
||||||
- revive
|
- revive
|
||||||
|
# Allow duplications in tests so it's easier to follow a single unit
|
||||||
|
# test.
|
||||||
|
- dupl
|
||||||
|
|
||||||
- path: mock*
|
- path: mock*
|
||||||
linters:
|
linters:
|
||||||
- revive
|
- revive
|
||||||
|
# forcetypeassert is skipped for the mock because the test would fail
|
||||||
|
# if the returned value doesn't match the type, so there's no need to
|
||||||
|
# check the convert.
|
||||||
|
- forcetypeassert
|
||||||
|
|
||||||
- path: test*
|
- path: test*
|
||||||
linters:
|
linters:
|
||||||
|
|||||||
Reference in new issue
Block a user