-
Notifications
You must be signed in to change notification settings - Fork 2k
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
chore(lint): use Go stdlib variables for HTTP methods and status codes #17968
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.
Hi @thevilledev and thanks so much for this PR, it LGTM.
Before merging I wanted to ask whether it would be possible to split this up slightly into 3 separate PR's, which would help backporting. Ideally the PR's would address the following areas, so I can backport to different release branches:
- node pools
- variables
- everything else
Being particular about backporting will make future development and backporting easier.
Happy to help and thank you for the review @jrasell! In terms of backporting, I can definitely split this into three separate PRs. Just to confirm, would this splitting work?
|
Exactly; thanks again @thevilledev! |
Alright, all done! I removed those two changes from this PR so please consider this as the third PR consisting of changes for the rest of the files and linting 👍 |
#17968) (#18074) Co-authored-by: Ville Vesilehto <[email protected]>
What
net/http
related calls to consistently use HTTP methods and response codes from variables/constants provided by the pkg.usestdlibvars
to lint configuration.See #18061 and #18062 for changes related to node pool and variable endpoints.
Why
Some parts of the codebase already use these. With this PR, better code consistency and reliability.