Prefer strings.Contains over strings.Index comparison

Proprietary

Replace strings.Index(s, sub) != -1 and similar patterns with strings.Contains(s, sub).

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

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