From 6cecd35e6e44de6cb94782613546c98fc2811f2a Mon Sep 17 00:00:00 2001 From: "Chris S. Kim" Date: Thu, 20 Jan 2022 13:07:10 -0500 Subject: [PATCH] ci: Add explanation in forbidigo (#12140) --- .golangci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 775e4c915e..1663c96707 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -61,8 +61,8 @@ linters-settings: forbidigo: # Forbid the following identifiers (list of regexp). forbid: - - '\brequire\.New\b' - - '\bassert\.New\b' + - '\brequire\.New\b(# Use package-level functions with explicit TestingT)?' + - '\bassert\.New\b(# Use package-level functions with explicit TestingT)?' # Exclude godoc examples from forbidigo checks. # Default: true exclude_godoc_examples: false