-
Notifications
You must be signed in to change notification settings - Fork 170
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
chore: format once with gofumpt #797
Conversation
return sdk.NewDecWithPrec(050, 3).Add(sdk.NewDecWithPrec(int64(r.Intn(950)), 3)) | ||
return sdk.NewDecWithPrec(50, 3).Add(sdk.NewDecWithPrec(int64(r.Intn(950)), 3)) |
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.
Note: formatter actually wanted to change this to 0o050
(octal), which is not what the code was intended to do, but is what it was actually doing.
Manually removed leading zeroes in the three lines changed for this file.
@@ -46,7 +46,7 @@ func (s *IntegrationTestSuite) SetupTest() { | |||
} | |||
|
|||
// CreateTestTx is a helper function to create a tx given multiple inputs. | |||
func (suite *IntegrationTestSuite) CreateTestTx(privs []cryptotypes.PrivKey, accNums []uint64, accSeqs []uint64, chainID string) (xauthsigning.Tx, error) { | |||
func (suite *IntegrationTestSuite) CreateTestTx(privs []cryptotypes.PrivKey, accNums, accSeqs []uint64, chainID string) (xauthsigning.Tx, error) { |
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.
imo defining parameter types like accNums []uint64, accSeqs []uint64,
becomes a lot more readable when it comes to longer function definitions, so we probably shouldn't enforce it in CI - wdyt?
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 personally favor the shortened ones, except when they're separated by newlines in which case each one gets a type.
But CI could be overkill either way
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 :^)
* gofumpt -l -w . * gofumpt -l -w -extra . * remove unintentional octal (cherry picked from commit 2802898)
* gofumpt -l -w . * gofumpt -l -w -extra . * remove unintentional octal (cherry picked from commit 2802898)
Description
Formatting pass using gofumpt, a stricter
gofmt
It might be worth using this in CI like a linter.
No functionality changes, so probably doesn't need a changelog.