From a20748098fb3cb4b69f6b6ebb7809e7741122ef8 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Sat, 19 Jun 2021 17:59:57 +0200 Subject: [PATCH] revive: fix exclude comment rule for const block. (#2064) --- pkg/config/issues.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/issues.go b/pkg/config/issues.go index 3b5a780f..71bf2a90 100644 --- a/pkg/config/issues.go +++ b/pkg/config/issues.go @@ -79,7 +79,7 @@ var DefaultExcludePatterns = []ExcludePattern{ }, { ID: "EXC0012", - Pattern: `exported (.+) should have comment or be unexported`, + Pattern: `exported (.+) should have comment( \(or a comment on this block\))? or be unexported`, Linter: "revive", Why: "Annoying issue about not having a comment. The rare codebase has such comments", },