Browse Source

ci: Add explanation in forbidigo (#12140)

pull/12142/head
Chris S. Kim 3 years ago committed by GitHub
parent
commit
6cecd35e6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .golangci.yml

4
.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

Loading…
Cancel
Save