Allocate map outside loop
ProprietaryHoist make(map[...]...) calls out of for/range loops and clear the map each iteration.
org. openrewrite. golang. codequality. AllocateMapOutsideLoopmod run . --recipe= org. openrewrite. golang. codequality. AllocateMapOutsideLoopInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.