Find raw CoroutineScope(...) constructions
ProprietaryA CoroutineScope(...) constructed inline must be cancelled explicitly when its owner is torn down; nothing automatic ties it to a lifecycle. Prefer one of the framework scopes (viewModelScope, lifecycleScope) or own the cancellation explicitly in a Closeable.
org. openrewrite. kotlin. coroutines. FindBareCoroutineScopeCtor$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. coroutines. FindBareCoroutineScopeCtor$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.