-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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-lint round #3 #3562
golangci-lint round #3 #3562
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: baude 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 |
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 don't think we should include the .idea folder. Otherwise, one small nit. LGTM
@@ -804,7 +804,7 @@ func makeHealthCheckFromCli(c *GenericCLIResults) (*manifest.Schema2HealthConfig | |||
if err != nil { | |||
return nil, errors.Wrapf(err, "invalid healthcheck-timeout %s", inTimeout) | |||
} | |||
if timeoutDuration < time.Duration(time.Second*1) { | |||
if timeoutDuration < time.Duration(1) { |
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.
Does the linter accept (time.Duration(1) * time.Second)? I hate to lose the units here.
☔ The latest upstream changes (presumably #3509) made this pull request unmergeable. Please resolve the merge conflicts. |
0b04a8e
to
aa0cbef
Compare
☔ The latest upstream changes (presumably #3590) made this pull request unmergeable. Please resolve the merge conflicts. |
this is the third round of preparing to use the golangci-lint on our code base. Signed-off-by: baude <[email protected]>
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
Let's get this in to avoid merge conflicts. We can sort out the time.Seconds
issue mentioned by @jwhonce later.
/lgtm |
this is the third round of preparing to use the golangci-lint on our
code base.
Signed-off-by: baude [email protected]