Find ReentrantLock() / ReentrantReadWriteLock() allocations

Proprietary

Each 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$KtRecipe
mod 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.