Find non-empty catch blocks that neither log nor rethrow

Proprietary

A catch that handles the exception by silently absorbing it (without logging, without rethrowing, without storing it) loses every detail of the failure. Either log with the exception as the cause (log.error("context", e)), rethrow as a wrapping exception, or capture the exception into a Result/sealed result type.

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