We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
exhaustruct
package/name/structname
1 parent4200194 commit467d563Copy full SHA for 467d563
.golangci.reference.yml
@@ -356,16 +356,18 @@ linters-settings:
356
-'example.com/package.ExampleStruct'
357
358
exhaustruct:
359
-# List of regular expressions to match struct packages and names.
+# List of regular expressions to match struct packages and their names.
360
+# Regular expressions must match complete canonical struct package/name/structname.
361
# If this list is empty, all structs are tested.
362
# Default: []
363
include:
- -'.*\.Test'
364
+ -'.+\.Test'
365
-'example\.com/package\.ExampleStruct[\d]{1,2}'
-# 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
368
369
exclude:
- -'cobra\.Command$'
370
+ -'.+/cobra\.Command$'
371
372
forbidigo:
373
# Forbid the following identifiers (list of regexp).