We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20b6515 commit 42a3299Copy full SHA for 42a3299
.golangci.example.yml
@@ -134,11 +134,13 @@ linters-settings:
134
default-signifies-exhaustive: false
135
136
exhaustivestruct:
137
+ # Struct Patterns is list of expressions to match struct packages and names
138
+ # The struct packages have the form example.com/package.ExampleStruct
139
+ # The matching patterns can use matching syntax from https://pkg.go.dev/path#Match
140
+ # If this list is empty, all structs are tested.
141
struct-patterns:
142
- '*.Test'
- - '*.Test2'
- - '*.Embedded'
- - '*.External'
143
+ - 'example.com/package.ExampleStruct'
144
145
forbidigo:
146
# Forbid the following identifiers
0 commit comments