Find Mono.block() calls outside @Test methods
ProprietaryMono.block() parks the calling thread until the upstream Mono completes, which is fine in a test but a footgun in production code. On Netty's small event-loop pool, one block() can stall every concurrent request. Bridge with awaitSingle() from kotlinx-coroutines-reactor inside a suspend fun instead.
org. openrewrite. kotlin. spring. FindMonoBlockInNonTest$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. spring. FindMonoBlockInNonTest$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.