Skip to content

Commit a207480

Browse files
authored
revive: fix exclude comment rule for const block. (#2064)
1 parent 6924df8 commit a207480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/config/issues.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ var DefaultExcludePatterns = []ExcludePattern{
7979
},
8080
{
8181
ID: "EXC0012",
82-
Pattern: `exported (.+) should have comment or be unexported`,
82+
Pattern: `exported (.+) should have comment( \(or a comment on this block\))? or be unexported`,
8383
Linter: "revive",
8484
Why: "Annoying issue about not having a comment. The rare codebase has such comments",
8585
},

0 commit comments

Comments
 (0)