Narrow catch clauses that catch Throwable
ProprietaryFinds 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. NarrowCatchClausemod run . --recipe= org. openrewrite. scala. safety. NarrowCatchClauseInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.