docs: fix pattern of forbidigo in example config yaml (#2000)

This commit is contained in:
takaya 2021-05-20 00:14:39 +09:00 committed by GitHub
parent fcef82475c
commit b73972f6af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,11 +143,10 @@ linters-settings:
- 'example.com/package.ExampleStruct'
forbidigo:
# Forbid the following identifiers
# Forbid the following identifiers (identifiers are written using regexp):
forbid:
- fmt.Errorf # consider errors.Errorf in github.com/pkg/errors
- fmt.Print.* # too much log noise
- ginkgo\\.F.* # these are used just for local development
- ^print.*$
- 'fmt\.Print.*'
# Exclude godoc examples from forbidigo checks. Default is true.
exclude_godoc_examples: false