Prefer bytes.ContainsRune

Proprietary

Replace bytes.IndexRune(b, r) != -1 with bytes.ContainsRune(b, r) and bytes.IndexRune(b, r) == -1 with !bytes.ContainsRune(b, r).

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

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