Avoid ReadAll in loop
ProprietaryFind io.ReadAll() or ioutil.ReadAll() calls inside for/range loops. These read entire content into memory on each iteration.
org. openrewrite. golang. codequality. AvoidReadAllInLoopmod run . --recipe= org. openrewrite. golang. codequality. AvoidReadAllInLoopInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.