Avoid lock in loop
ProprietaryFind Lock() or RLock() calls inside for/range loops. Acquiring locks in tight loops can cause contention; consider locking once outside the loop.
org. openrewrite. golang. codequality. AvoidLockInLoopmod run . --recipe= org. openrewrite. golang. codequality. AvoidLockInLoopInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.