Open file outside loop
ProprietaryFind os.Open() or os.Create() calls inside for/range loops. Opening files in tight loops should use a single open outside the loop.
org. openrewrite. golang. codequality. OpenFileOutsideLoopmod run . --recipe= org. openrewrite. golang. codequality. OpenFileOutsideLoopInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.