-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
DefaultExcludePatterns should only be used for specified linter #1494
Conversation
passed all tests, ready for review. |
a4ddfda
to
5b51dc8
Compare
I think that what you are doing here (changing semantics of an existing flag) is not a good idea. I would rather expect new flag to be introduced and handle the new case. Adding |
The |
@iwankgb we can keep backward compatible by adding a new rule like
Then we can remove all these |
After put some thought to it, i think keeping backward compatible makes this PR more easily to understand, and we can remove all |
@ZYunH now I understand what you mean. I believe that your PR and issue are basically a bugfix and bugreport. If we provide linter information then we should not apply default exclude rules to all the linters. Taking above into consideration I have only one request: provide tests for |
@iwankgb PTAL, thanks! |
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.
This is last final piece of change and I will be more than happy to merge the PR.
a4bfc4f
to
ccd209a
Compare
Hey, @ZYunH — we just merged your PR to
By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests. Thanks again! |
Fixes #1474
This PR add "EXC0011", because most of package in golangci-lint does not having a package comment.make test
passed.updated, for now, "EXC0011" same with "EXC0002" but with different linter field for keeping backward compatible.