mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
docs: exhaustivestruct example explanation (#1985)
This commit is contained in:
parent
20b6515ce3
commit
42a3299184
1 changed files with 5 additions and 3 deletions
|
@ -134,11 +134,13 @@ linters-settings:
|
|||
default-signifies-exhaustive: false
|
||||
|
||||
exhaustivestruct:
|
||||
# Struct Patterns is list of expressions to match struct packages and names
|
||||
# The struct packages have the form example.com/package.ExampleStruct
|
||||
# The matching patterns can use matching syntax from https://pkg.go.dev/path#Match
|
||||
# If this list is empty, all structs are tested.
|
||||
struct-patterns:
|
||||
- '*.Test'
|
||||
- '*.Test2'
|
||||
- '*.Embedded'
|
||||
- '*.External'
|
||||
- 'example.com/package.ExampleStruct'
|
||||
|
||||
forbidigo:
|
||||
# Forbid the following identifiers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue