Skip to content

Commit

Permalink
ci: disable 'testpackage' linter in golangci
Browse files Browse the repository at this point in the history
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 <ndevos@redhat.com>
Rate limit · GitHub

Access has been restricted

You have triggered a rate limit.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

nixpanic authored and mergify[bot] committed Jul 21, 2020
1 parent 3695115 commit cb7ab30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/golangci.yml.in
Original file line number Diff line number Diff line change
@@ -164,3 +164,4 @@ linters:
- godox
- wsl
- funlen
- testpackage

0 comments on commit cb7ab30

Please sign in to comment.