Skip to content

Commit fe5178e

Browse files
ytakayaSeigeC
authored andcommitted
docs: fix pattern of forbidigo in example config yaml (golangci#2000)
1 parent 661a697 commit fe5178e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.golangci.example.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,10 @@ linters-settings:
143143
- 'example.com/package.ExampleStruct'
144144

145145
forbidigo:
146-
# Forbid the following identifiers
146+
# Forbid the following identifiers (identifiers are written using regexp):
147147
forbid:
148-
- fmt.Errorf # consider errors.Errorf in github.com/pkg/errors
149-
- fmt.Print.* # too much log noise
150-
- ginkgo\\.F.* # these are used just for local development
148+
- ^print.*$
149+
- 'fmt\.Print.*'
151150
# Exclude godoc examples from forbidigo checks. Default is true.
152151
exclude_godoc_examples: false
153152

0 commit comments

Comments
 (0)