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