Skip to content

Commit b73972f

Browse files
authored
docs: fix pattern of forbidigo in example config yaml (#2000)
1 parent fcef824 commit b73972f

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)