Find runCatching { } calls whose result is discarded
ProprietaryA runCatching { } in statement context throws nothing and returns nothing — the Result<T> is allocated and dropped on the floor. If the intent was 'do this, but don't fail the caller', wrap with .onFailure { log(it) }; if the intent was 'do this, ignoring exceptions', say so with try { … } catch (_: Exception) { } (or rethink whether to swallow at all).
org. openrewrite. kotlin. functional. FindRunCatchingWithoutHandling$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. functional. FindRunCatchingWithoutHandling$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.