-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
x/staking: remove alias.go usage #6397
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6397 +/- ##
=======================================
Coverage 55.66% 55.66%
=======================================
Files 465 465
Lines 27674 27674
=======================================
Hits 15404 15404
Misses 11169 11169
Partials 1101 1101 |
simapp/app.go
Outdated
@@ -36,6 +36,9 @@ import ( | |||
paramproposal "github.com/cosmos/cosmos-sdk/x/params/types/proposal" | |||
"github.com/cosmos/cosmos-sdk/x/slashing" | |||
"github.com/cosmos/cosmos-sdk/x/staking" | |||
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" | |||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" | |||
|
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.
Make sure these changes are formatted correctly. You can run goimports manually or, preferably, run make fmt
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.
Alternatively, just run:
git config core.hooksPath contrib/githooks
The git
pre-commit hook will fix code formatting for you.
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.
Hi Alexander,
both gofmt
, and goimports
do not detect any formatting issue. I am using vscode with auto-formatting on save.
In addition the command make fmt
does not exist. There is a command make format
in the make file which also does not detect any formatting issue.
Do you want me to remove the extra line in the import manually?
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.
Ahh, sorry, I meant make format
. Tip, you can use tab
to autocomplete.
WRT to formatting, the grouping is what I'm referring to. make format
should take care of this for you.
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.
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.
Goimport isn't smart enough to recognize this case unfortunately. Could you remove the space manually.
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.
ACK. Can you add a changelog entry under API Breaking
that says:
- (modules) [\#6311](https://github.com/cosmos/cosmos-sdk/issues/6311) Remove `alias.go` usage
This pull request introduces 2 alerts when merging b8e8ff1 into 9048ffa - view on LGTM.com new alerts:
|
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.
ACK
* x/staking: remove alias.go usage * Fix formatting and Add entry in CHANGELOG.md * Add missing end curly parenthesis Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Description
This PR closes a sub task in #6311
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.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorer