-
Notifications
You must be signed in to change notification settings - Fork 627
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
linting: use gci to sort imports #3887
Conversation
158fc09
to
5b67512
Compare
5b67512
to
12da89b
Compare
Note: I could refactor this in the same manner that I did the sdk, if desired: |
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 have to admit I haven't checked every single file, but I trust the linter to do its job. :)
Thank you, @faddat. It's nice to finally have a linter to end all import grouping/ordering wars. :D
I updated the Go style guide to recommend readers to run make lint-fix
.
I am personally not strongly opinionated: to me this grouping works fine. If others think some tweaking is needed, I will be also fine with it. |
I'm good with either, as well :) |
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 to me
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
Description
This PR only adds gci to ibc-go, so that we can sort imports with ease.
Commit Message / Changelog Entry
see the guidelines for commit messages. (view raw markdown for examples)
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.