ci: Add explanation in forbidigo (#12140)

This commit is contained in:
Chris S. Kim 2022-01-20 13:07:10 -05:00 committed by GitHub
parent baa45a6987
commit 6cecd35e6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ linters-settings:
forbidigo: forbidigo:
# Forbid the following identifiers (list of regexp). # Forbid the following identifiers (list of regexp).
forbid: forbid:
- '\brequire\.New\b' - '\brequire\.New\b(# Use package-level functions with explicit TestingT)?'
- '\bassert\.New\b' - '\bassert\.New\b(# Use package-level functions with explicit TestingT)?'
# Exclude godoc examples from forbidigo checks. # Exclude godoc examples from forbidigo checks.
# Default: true # Default: true
exclude_godoc_examples: false exclude_godoc_examples: false