From cb7ab307dd59de4cb9f91c246a16265bbdea8fe9 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Wed, 24 Jun 2020 08:53:25 +0200 Subject: [PATCH] ci: disable 'testpackage' linter in golangci The 'testpackage' linter recommends "black box" testing, which prevents testing internal/non-exported functions from being tested. We have tests that *do* test non-exported functions and types. Disabling the linter allows us to test non-exported types and functions. Signed-off-by: Niels de Vos --- scripts/golangci.yml.in | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/golangci.yml.in b/scripts/golangci.yml.in index 440ea12ae..3199420cc 100644 --- a/scripts/golangci.yml.in +++ b/scripts/golangci.yml.in @@ -164,3 +164,4 @@ linters: - godox - wsl - funlen + - testpackage