Avoid context.WithValue

Proprietary

Find calls to context.WithValue(). Context values are an anti-pattern for passing dependencies; prefer explicit function parameters.

org.openrewrite.golang.codequality.AvoidContextWithValue
mod run . --recipe=org.openrewrite.golang.codequality.AvoidContextWithValue

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.