Skip to content

Commit 5a7bec4

Browse files
committed
revice: fix revive excludes
1 parent 1c2c8ff commit 5a7bec4

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

pkg/config/issues.go

+14-2
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,25 @@ 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: `package comment should be of the form "(.+)...`,
89+
Linter: "revive",
90+
Why: "Annoying issue about not having a comment. The rare codebase has such comments",
91+
},
92+
{
93+
ID: "EXC0014",
94+
Pattern: `comment on exported (.+) should be of the form "(.+)..."`,
95+
Linter: "revive",
96+
Why: "Annoying issue about not having a comment. The rare codebase has such comments",
97+
},
98+
{
99+
ID: "EXC0015",
100+
Pattern: `should have a package comment, unless it's in another file for this package`,
89101
Linter: "revive",
90102
Why: "Annoying issue about not having a comment. The rare codebase has such comments",
91103
},

0 commit comments

Comments
 (0)