-
Notifications
You must be signed in to change notification settings - Fork 450
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
Use goimports for formatting #2655
Conversation
d4d242a
to
0fc0989
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.
Nice! /lgtm
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 still don't like goimports, but I agree it's necessary to improve our dev productivity... thanks for pushing this forward!
/lgtm
I don't like it either. Totally agreed 😄 |
How to categorize this PR?
/area dev-productivity
/kind task
/priority normal
What this PR does / why we need it:
Following up on discussions like #2336 (comment), this PR switches formatting to goimports, in order to get rid of
please sort the imports
comments on PRs.Unfortunately, goimports also does not correctly group all third-party/local imports into one import group according to https://github.com/golang/go/wiki/CodeReviewComments#imports.
But as discussed in the linked thread, it probably makes sense to stick to official tools like goimports and agree on the formatting enforced by it, so we can just omit PR comments like
please sort the imports
if goimports accepts the proposed sorting.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: