Skip to content
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

Merged
merged 1 commit into from May 23, 2021
Merged

revive: fix excludes #2005

merged 1 commit into from May 23, 2021

Conversation

ldez
Copy link
Member

@ldez ldez commented May 20, 2021

Fixes #2004

@ldez ldez added the bug Something isn't working label May 20, 2021
@ldez ldez changed the title revice: fix excludes revive: fix excludes May 20, 2021
@hiyosi hiyosi mentioned this pull request May 21, 2021
3 tasks
@ldez ldez merged commit fb7c90d into golangci:master May 23, 2021
@ldez ldez deleted the feat/revive-excludes branch May 23, 2021 17:05
@@ -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`,
Copy link

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?

Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in #2064

SeigeC pushed a commit to SeigeC/golangci-lint that referenced this pull request Apr 4, 2023
@ldez ldez added this to the v1.41 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

revive does not exclude some of the exported comment lint.
3 participants