-
Notifications
You must be signed in to change notification settings - Fork 138
Fix staticcheck issues (ST1001, QF1008, ST1005) #1321
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
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.
The approach looks legit to me. Left a naming suggestion to avoid clashing with our current imports.
Thanks for willing to contribute!
Thank you for your feedback. I'll work on other typecheck issues except naming rule( |
I Fixed two more staticcheck issues. Fixing QF1008 just slightly affects on readability, but I think it's small changes no problem on the software behavior. However, fixing ST1005 changes error messages that users may see, and it can also introduce some inconsistencies (for example, Please take a look at the ST1005-related commit and let me know your preference. If you prefer, we can also add |
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.
QF1008
LGTM!
ST1005
Could we ignore this rule in the following cases?
- When referring to an API type i.e.
Pod
orBackup
- When referring to names i.e.
Galera
Thank you! You are on the right track.
b159cc1
to
e691502
Compare
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.
add //nolint
to error messages starting with
- API names like
Pod
,Certificate
,Backup
andJob
- specific name or variable name like
Galera
andAuthorization
Thank you for the review! I’ve addressed the comments. Let me know if anything else needs adjustment! |
e691502
to
d82e961
Compare
@mmontes11 Thanks for updating the commits! Let me know if there's anything else you'd like me to do. |
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! Thank you very much for this contribution! 🦭
Will be released in 25.08
This is part of the fix for issue #1318.
I’ve addressed only ST1001 (“dot imports are discouraged”) for now, as it was a straightforward change.
Since fixing all staticcheck issues would involve changes across many files, I'd prefer to proceed step by step and confirm the approach with maintainers.
Please let me know if this direction looks good.