File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -356,16 +356,18 @@ linters-settings:
356
356
- ' example.com/package.ExampleStruct'
357
357
358
358
exhaustruct :
359
- # List of regular expressions to match struct packages and names.
359
+ # List of regular expressions to match struct packages and their names.
360
+ # Regular expressions must match complete canonical struct package/name/structname.
360
361
# If this list is empty, all structs are tested.
361
362
# Default: []
362
363
include :
363
- - ' .* \.Test'
364
+ - ' .+ \.Test'
364
365
- ' example\.com/package\.ExampleStruct[\d]{1,2}'
365
- # List of regular expressions to exclude struct packages and names from check.
366
+ # List of regular expressions to exclude struct packages and their names from checks.
367
+ # Regular expressions must match complete canonical struct package/name/structname.
366
368
# Default: []
367
369
exclude :
368
- - ' cobra\.Command$'
370
+ - ' .+/ cobra\.Command$'
369
371
370
372
forbidigo :
371
373
# Forbid the following identifiers (list of regexp).
You can’t perform that action at this time.
0 commit comments