golangci: update linter settings for test files

This commit is contained in:
yyforyongyu 2023-06-14 07:03:35 +08:00
parent 0dd2aa0aef
commit a9da25b238
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

View File

@ -214,10 +214,17 @@ issues:
- gosec
- funlen
- revive
# Allow duplications in tests so it's easier to follow a single unit
# test.
- dupl
- path: mock*
linters:
- 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*
linters: