-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
golangci enable additional linters (prealloc predeclared whitespace tagalign) and fix issues #27959
Conversation
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.
Looks good except one of the changes might be adding a potential crash back into the provider
var output []ClusterSettingModel | ||
if input == nil || len(*input) == 0 { | ||
return output | ||
if len(*input) == 0 { |
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.
I believe we still want to check if input is nil before casing to it
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.
LGTM!
enabled linters prealloc predeclared whitespace tagalign
white space linter does not seem to have the same impact anymore (6m vs 5m)
updated golangci.yml to 1.22
This is a (please select all that apply):
Related Issue(s)
Fixes #0000
Note
If this PR changes meaningfully during the course of review please update the title and description as required.