Modernize Kotlin coroutines code

Proprietary

Search-only recipes that surface coroutine-related issues IntelliJ IDEA 2026.1's coroutine inspections flag: structured-concurrency leaks, blocking on suspend contexts, Flow operator misorder, and hand-rolled sequencing where a canonical operator exists. Each match is a SearchResult for review — nothing is rewritten automatically.

org.openrewrite.kotlin.coroutines.Coroutines$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.coroutines.Coroutines$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.

Recipe list

It runs these recipes, in this order.

  1. Find structured-concurrency leaks
  2. Find blocking calls inside coroutine contexts
  3. Find Flow operator antipatterns
  4. Find coroutine sequencing smells
  5. Find MutableStateFlow<T?>(null) declarations