-
Notifications
You must be signed in to change notification settings - Fork 295
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
🌱 Remove lint ignore for gocritic
#2399
🌱 Remove lint ignore for gocritic
#2399
Conversation
Hi @MrDXY. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
/ok-to-test
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2399 +/- ##
==========================================
+ Coverage 60.79% 60.94% +0.14%
==========================================
Files 164 164
Lines 9473 9465 -8
==========================================
+ Hits 5759 5768 +9
+ Misses 3298 3284 -14
+ Partials 416 413 -3
☔ View full report in Codecov by Sentry. |
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.
Looks good - one idea to add comments.
And you managed to fix what looks like a bad bug while you were at it!
31b7daf
to
1add327
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.
One last nit.
:-)
1add327
to
062d607
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.
/lgtm
LGTM label has been added. Git tree hash: 4dd388b26bb3ddbc8be9c32ace8d18be92292433
|
Hi folks, do we still have any comments/suggestions or concerns on this PR? If everything looks good, please kindly approve at your convenience. |
I'm good with the change, however merging will currently fail due to issues in CI... /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrischdi 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 |
Maybe not - do we re-run test runs when we merge? Let's see 🤔 |
/retest |
What this PR does / why we need it:
Remove
//nolint:gocritic
linter and fix findings.nolint:gocritic
for/controllers/controllers_suite_test.go
teardown
, I remove thedefer
keyword and place it before theos.Exit(code)
statement.nolint:gocritic
for/controllers/vspheremachine_controller.go
r.supervisorBased
andmachineCtx.GetCluster().Status.InfrastructureReady
using anelse if
statement as recommended bygocritic
.nolint:gocritic
forpkg/services/govmomi/service.go
switch
logic, and use an if to replace it.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Part of #2384