docs: fix pattern of forbidigo in example config yaml (#2000)
This commit is contained in:
parent
fcef82475c
commit
b73972f6af
@ -143,11 +143,10 @@ linters-settings:
|
|||||||
- 'example.com/package.ExampleStruct'
|
- 'example.com/package.ExampleStruct'
|
||||||
|
|
||||||
forbidigo:
|
forbidigo:
|
||||||
# Forbid the following identifiers
|
# Forbid the following identifiers (identifiers are written using regexp):
|
||||||
forbid:
|
forbid:
|
||||||
- fmt.Errorf # consider errors.Errorf in github.com/pkg/errors
|
- ^print.*$
|
||||||
- fmt.Print.* # too much log noise
|
- 'fmt\.Print.*'
|
||||||
- ginkgo\\.F.* # these are used just for local development
|
|
||||||
# Exclude godoc examples from forbidigo checks. Default is true.
|
# Exclude godoc examples from forbidigo checks. Default is true.
|
||||||
exclude_godoc_examples: false
|
exclude_godoc_examples: false
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user