-
Notifications
You must be signed in to change notification settings - Fork 20
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(*): fix lint config #126
Conversation
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.
Thanks for addressing all of them!
//nolint:nilerr | ||
return nil // if no conifg is found just stop. |
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 feel that this error can be returned
//nolint:nilerr | ||
return nil // config does not exist, so does not update it |
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.
also feel the error can be returned
@@ -8,7 +8,6 @@ import ( | |||
"sync/atomic" | |||
|
|||
"cosmossdk.io/math" |
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.
what about renaming it to sdkmath
?
|
||
for _, tc := range tcs { | ||
tc := tc |
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.
how could this work?
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.
This might be a false positive by the linter, but remember in previous versions of golang when running a go routine in a loop you couldn't just pass the loop variable into the go routine but you had to either to this, or pass it as an argument to the go routine
@@ -16,7 +16,6 @@ import ( | |||
sdkmath "cosmossdk.io/math" | |||
"github.com/babylonlabs-io/babylon/testutil/datagen" | |||
bbn "github.com/babylonlabs-io/babylon/types" | |||
bbntypes "github.com/babylonlabs-io/babylon/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.
curious why bbntypes
not good?
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.
duplicate imports:
bbn "github.com/babylonlabs-io/babylon/types"
bbntypes "github.com/babylonlabs-io/babylon/types"
Fixes linting configuration (currently 126 issues outstanding)