File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -79,13 +79,25 @@ var DefaultExcludePatterns = []ExcludePattern{
79
79
},
80
80
{
81
81
ID : "EXC0012" ,
82
- Pattern : " exported (method|function|type|const) ( .+) should have comment or be unexported" ,
82
+ Pattern : ` exported (.+) should have comment or be unexported` ,
83
83
Linter : "revive" ,
84
84
Why : "Annoying issue about not having a comment. The rare codebase has such comments" ,
85
85
},
86
86
{
87
87
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` ,
89
101
Linter : "revive" ,
90
102
Why : "Annoying issue about not having a comment. The rare codebase has such comments" ,
91
103
},
You can’t perform that action at this time.
0 commit comments