From b73972f6af25eec17b799ed179113272bb9081d7 Mon Sep 17 00:00:00 2001 From: takaya Date: Thu, 20 May 2021 00:14:39 +0900 Subject: [PATCH] docs: fix pattern of forbidigo in example config yaml (#2000) --- .golangci.example.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.golangci.example.yml b/.golangci.example.yml index fd2f2cc6..988b4d28 100644 --- a/.golangci.example.yml +++ b/.golangci.example.yml @@ -143,11 +143,10 @@ linters-settings: - 'example.com/package.ExampleStruct' forbidigo: - # Forbid the following identifiers + # Forbid the following identifiers (identifiers are written using regexp): forbid: - - fmt.Errorf # consider errors.Errorf in github.com/pkg/errors - - fmt.Print.* # too much log noise - - ginkgo\\.F.* # these are used just for local development + - ^print.*$ + - 'fmt\.Print.*' # Exclude godoc examples from forbidigo checks. Default is true. exclude_godoc_examples: false