From 9fe6d765a4ef296fc21df098ec643dadb88fff39 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Thu, 12 Dec 2024 07:18:04 +1300 Subject: [PATCH] test: forbid using `t.Parallel` --- .golangci.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.golangci.yaml b/.golangci.yaml index ef311502..fbfb46b4 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -28,7 +28,7 @@ linters: # - errorlint # - exhaustive # - fatcontext -# - forbidigo + - forbidigo - ginkgolinter - gocheckcompilerdirectives - gochecknoinits @@ -90,3 +90,11 @@ linters: - whitespace - zerologlint disable-all: true + +linters-settings: + forbidigo: + forbid: + # Parallel tests mixes up log lines of multiple tests in the internal test runner + - p: ^testing.T.Parallel$ + pkg: ^testing$ + analyze-types: true