-
Notifications
You must be signed in to change notification settings - Fork 367
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
🌱 Update golangci-lint 1.50.1, add more linters #2480
🌱 Update golangci-lint 1.50.1, add more linters #2480
Conversation
Can we hold that until the workspace refactoring has merged? Fearing rebase hell. |
@sttts Absolutely, I forgot to put the hold after talking with Andy, I'll wait and do a rebase on your refactoring once it's ready /hold |
/hold cancel |
/lgtm |
Let me know if we'd prefer to have a single commit here, or keep them separate, happy to do either way |
/retest |
Don't think multiple commits will hurt anything - re-triggering the tests to clear flakes |
/lgtm |
pkg/cache/client/round_tripper.go
Outdated
@@ -56,12 +56,12 @@ func WithShardNameFromContextRoundTripper(cfg *rest.Config) *rest.Config { | |||
// It changes the URL path to target a shard from the context. | |||
// | |||
// For example given "amber" shard name in the context it will change | |||
// apis/apis.kcp.io/v1alpha1/apiexports to /shards/amber/apis/apis.kcp.io/v1alpha1/apiexports | |||
// apis/apis.kcp.dev/v1alpha1/apiexports to /shards/amber/apis/apis.kcp.dev/v1alpha1/apiexports. |
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.
undo
pkg/tunneler/listener.go
Outdated
if err != nil { | ||
klog.V(5).Infof("Can not create request %v", err) | ||
return nil, err | ||
} | ||
|
||
klog.V(5).Infof("Listener creating connection to %s", connect) | ||
res, err := ln.client.Do(req) | ||
res, err := ln.client.Do(req) //nolint:bodyclose // Seems we're returning te connection with res.Body, caller closes 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.
res, err := ln.client.Do(req) //nolint:bodyclose // Seems we're returning te connection with res.Body, caller closes it? | |
res, err := ln.client.Do(req) //nolint:bodyclose // Seems we're returning the connection with res.Body, caller closes it? |
Signed-off-by: Vince Prignano <vince@prigna.com>
Signed-off-by: Vince Prignano <vince@prigna.com>
Signed-off-by: Vince Prignano <vince@prigna.com>
Signed-off-by: Vince Prignano <vince@prigna.com>
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ncdc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
This PR updates golanci-lint, adds many new linters, and fixes up a number of linter-found issues. For simplicity of review, the commits are split into multiple ones, although happy to squash them if needed.
Related issue(s)
Fixes #