Narrow catch clauses that catch Throwable

Proprietary

Finds catch blocks that catch Throwable and should be narrowed to specific exception types. Catching Throwable also catches fatal errors like OutOfMemoryError and StackOverflowError. Prefer catching specific exception types.

org.openrewrite.scala.safety.NarrowCatchClause
mod run . --recipe=org.openrewrite.scala.safety.NarrowCatchClause

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.