Allocate outside loop
ProprietaryFind new() calls inside for/range loops. Repeated heap allocations in loops add GC pressure; consider reusing the object.
org. openrewrite. golang. codequality. AllocateOutsideLoopmod run . --recipe= org. openrewrite. golang. codequality. AllocateOutsideLoopInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.