From a9da25b2381dc9deee9d7831ec9aba1840f1bfe9 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Wed, 14 Jun 2023 07:03:35 +0800 Subject: [PATCH] golangci: update linter settings for test files --- .golangci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index a68dd81ee..3ac45f3c7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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: