Optimize copy in loop

Proprietary

Find copy() calls inside for/range loops. Repeated copying in loops may indicate a buffer reuse opportunity.

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

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