Prefer strings.Contains over strings.Index comparison
ProprietaryReplace strings.Index(s, sub) != -1 and similar patterns with strings.Contains(s, sub).
org. openrewrite. golang. codequality. PreferStringsContainsmod run . --recipe= org. openrewrite. golang. codequality. PreferStringsContainsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.