Prefer strings.ContainsAny
ProprietaryReplace strings.IndexAny(s, chars) != -1 with strings.ContainsAny(s, chars) and strings.IndexAny(s, chars) == -1 with !strings.ContainsAny(s, chars).
org. openrewrite. golang. codequality. PreferStringsContainsAnymod run . --recipe= org. openrewrite. golang. codequality. PreferStringsContainsAnyInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.