Find ReentrantLock() / ReentrantReadWriteLock() allocations
ProprietaryEach ReentrantLock allocation is a manual concurrency primitive. Flag for review — in coroutine code, Mutex is usually the cooperative-cancellation-friendly replacement.
org. openrewrite. kotlin. search. FindReentrantLockAllocations$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. search. FindReentrantLockAllocations$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.