-
Notifications
You must be signed in to change notification settings - Fork 111
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
Allow *Testing.T argument before context #3800
Allow *Testing.T argument before context #3800
Conversation
as well as default revive rules
d61fe1f
to
1da25da
Compare
@@ -131,8 +131,7 @@ func TestState(t *testing.T) { | |||
return nil, errors.New("planning failed") | |||
}, | |||
executeFunc: func(ctx context.Context, plan motionplan.Plan) (state.ExecuteResponse, error) { | |||
t.Log("should not be called as planning failed") | |||
t.FailNow() | |||
t.Fatal("should not be called as planning failed") //nolint:revive |
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.
keeping as is with a nolint
since this effects benchmarks
Availability
Quality
Performance
The above data was generated by running scenes defined in the
|
Configure
revive
linter to allow*Testing.T
and friends to come beforecontext.Context
as a function argument.Also add and fixup code to adhere to the following default
revive
rules:superfluous-else
unreachable-code
Context: #3795 (comment)