mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
revive: fix excludes (#2005)
This commit is contained in:
parent
1c2c8ffd28
commit
fb7c90d6ee
1 changed files with 14 additions and 2 deletions
|
@ -79,13 +79,25 @@ var DefaultExcludePatterns = []ExcludePattern{
|
|||
},
|
||||
{
|
||||
ID: "EXC0012",
|
||||
Pattern: "exported (method|function|type|const) (.+) should have comment or be unexported",
|
||||
Pattern: `exported (.+) should have comment or be unexported`,
|
||||
Linter: "revive",
|
||||
Why: "Annoying issue about not having a comment. The rare codebase has such comments",
|
||||
},
|
||||
{
|
||||
ID: "EXC0013",
|
||||
Pattern: `package comment should be of the form "Package (.+) ..."`,
|
||||
Pattern: `package comment should be of the form "(.+)...`,
|
||||
Linter: "revive",
|
||||
Why: "Annoying issue about not having a comment. The rare codebase has such comments",
|
||||
},
|
||||
{
|
||||
ID: "EXC0014",
|
||||
Pattern: `comment on exported (.+) should be of the form "(.+)..."`,
|
||||
Linter: "revive",
|
||||
Why: "Annoying issue about not having a comment. The rare codebase has such comments",
|
||||
},
|
||||
{
|
||||
ID: "EXC0015",
|
||||
Pattern: `should have a package comment, unless it's in another file for this package`,
|
||||
Linter: "revive",
|
||||
Why: "Annoying issue about not having a comment. The rare codebase has such comments",
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue