-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
revive: fix excludes #2005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
revive: fix excludes #2005
Conversation
c6fb0f2
to
79efe3c
Compare
79efe3c
to
5a7bec4
Compare
@@ -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`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, this pattern does not match the actual message from revive
.
❯ golangci-lint --version
golangci-lint has version 1.41.0 built from eed344f6 on 2021-06-16T19:58:50Z
❯ golangci-lint run
main.go:16:2: exported: exported const XXX should have comment (or a comment on this block) or be unexported (revive)
XXX = 0.1
@ldez Could you check that again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a specific case for const
in a group, I will fix that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in #2064
Fixes #2004