Skip to content

Commit c6fb0f2

Browse files
committed
revice: fix revive excludes
1 parent 62668d4 commit c6fb0f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/config/issues.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ var DefaultExcludePatterns = []ExcludePattern{
7979
},
8080
{
8181
ID: "EXC0012",
82-
Pattern: "exported (method|function|type|const) (.+) should have comment or be unexported",
82+
Pattern: `exported (.+) should have comment or be unexported`,
8383
Linter: "revive",
8484
Why: "Annoying issue about not having a comment. The rare codebase has such comments",
8585
},
8686
{
8787
ID: "EXC0013",
88-
Pattern: `package comment should be of the form "Package (.+) ..."`,
88+
Pattern: `comment on exported (.+) should be of the form "(.+)..."`,
8989
Linter: "revive",
9090
Why: "Annoying issue about not having a comment. The rare codebase has such comments",
9191
},

0 commit comments

Comments
 (0)