Find runCatching { }.onSuccess { … } chains with no failure handler

Proprietary

runCatching { }.onSuccess { … } with nothing after it discards the failure side of the Result. The success block runs only on success; the failure case vanishes silently. Add a paired .onFailure { } for diagnostics, or .fold(::onSuccess, ::onFailure) to make both cases explicit.

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