From 42a329918469a7694bae0622f3b22ed0b5ad8081 Mon Sep 17 00:00:00 2001 From: Oleg Butuzov Date: Sat, 15 May 2021 16:45:59 +0300 Subject: [PATCH] docs: exhaustivestruct example explanation (#1985) --- .golangci.example.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.golangci.example.yml b/.golangci.example.yml index 37432a62..fd2f2cc6 100644 --- a/.golangci.example.yml +++ b/.golangci.example.yml @@ -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