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
Go linting adjustments #13709
Go linting adjustments #13709
Conversation
Seems to major source of linter slowness is that it ventures into directories not containing any go files. Fix that by excluding the worst offending dirs.
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.
could you also include an upgrade to golangci-lint v1.33.0 in this PR?
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.
Perhaps also excluding node_modules
from revive as well would decrease time to complete linting.
Actually it does not seem to help much if any for golangci-lint but
I'll see if I can fix that, marking wip. |
Interestingly I get a bunch of new
|
Revive still goes into node_modules and randomly produces errors while at it, I have no idea why. I'm thinking we should maybe replace Also, even with the explicit paths, I don't really see much if any speed improvement which is odd. |
Doesn't look like this is really going anywhere and there's no actual speed gain, so closing this. We should look into that revive issue with node_modules later. |
Seems a major source of linter slowness is that it ventures into directories not containing any go files. Fix that by excluding the worst offending dirs.