-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
style: lint module path . #15660
style: lint module path . #15660
Conversation
…' into next"" This reverts commit c43e5fa.
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, left two remarks about the comments misplacements.
@@ -139,7 +139,7 @@ func (s *contextTestSuite) TestContextWithCustom() { | |||
s.Require().Equal(cp, ctx.WithConsensusParams(cp).ConsensusParams()) | |||
|
|||
// test inner context | |||
newContext := context.WithValue(ctx.Context(), "key", "value") //nolint:golint,staticcheck,revive | |||
newContext := context.WithValue(ctx.Context(), "key", "value") //nolint:golint,staticcheck,revive // we're going to use the raw strings here for testing, even though that's not recommended. |
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.
Let's instead fix that linting issue and use a struct{}{}
as context key.
@@ -238,7 +238,7 @@ func (s *contextTestSuite) TestUnwrapSDKContext() { | |||
s.Require().Panics(func() { types.UnwrapSDKContext(ctx) }) | |||
|
|||
// test unwrapping when we've used context.WithValue | |||
ctx = context.WithValue(sdkCtx, "foo", "bar") //nolint:golint,staticcheck,revive | |||
ctx = context.WithValue(sdkCtx, "foo", "bar") //nolint:golint,staticcheck,revive // we're going to use the raw strings here for testing, even though that's not recommended. |
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.
ditto.
Hi, thanks for the PR and the time invested in all the other style PRs, just closing this as the amount of conflicts increases and the work is happening gradually. |
Description
Works toward: #15546
This PR fixes the majority of the lints in the . module path.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change