Avoid ReadAll in loop

Proprietary

Find io.ReadAll() or ioutil.ReadAll() calls inside for/range loops. These read entire content into memory on each iteration.

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

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