File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -356,16 +356,18 @@ linters-settings:
356356 - ' example.com/package.ExampleStruct'
357357
358358 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.
360361 # If this list is empty, all structs are tested.
361362 # Default: []
362363 include :
363- - ' .* \.Test'
364+ - ' .+ \.Test'
364365 - ' 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.
366368 # Default: []
367369 exclude :
368- - ' cobra\.Command$'
370+ - ' .+/ cobra\.Command$'
369371
370372 forbidigo :
371373 # Forbid the following identifiers (list of regexp).
You can’t perform that action at this time.
0 commit comments