-
Notifications
You must be signed in to change notification settings - Fork 356
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: ban http.Transport & http.Client; add cleanhttp #8991
Conversation
✅ Deploy Preview for determined-ui canceled.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8991 +/- ##
==========================================
- Coverage 47.51% 47.49% -0.03%
==========================================
Files 1168 1168
Lines 176306 176306
Branches 2353 2351 -2
==========================================
- Hits 83765 83729 -36
- Misses 92383 92419 +36
Partials 158 158
Flags with carried forward coverage won't be shown. Click here to find out more.
|
62cc1ce
to
fa38b95
Compare
fa38b95
to
37ba5b7
Compare
master/.golangci.yml
Outdated
@@ -79,6 +79,8 @@ linters-settings: | |||
- 'fmt\.Print.*' | |||
- 'metaV1.NamespaceAll' # Will error if someone has namespace restricted permissions. | |||
- 'bundebug.WithVerbose' | |||
- 'http.Client' # Instead, we encourage use of cleanhttp. |
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.
- 'http.Client' # Instead, we encourage use of cleanhttp. | |
- 'http.Client' # Use cleanhttp instead. |
it is more than encouraged.
Description
Ban use of
http.Transport
andhttp.Client
in the codebase. Instead, usecleanhttp
library.Test Plan
Pass existing tests.
Commentary (optional)
Checklist
docs/release-notes/
.See Release Note for details.
Ticket
RM-85