Find throw Exception("…") calls
ProprietaryThrowing bare Exception (or RuntimeException) loses information that a more specific type would carry. Prefer IllegalArgumentException (bad input), IllegalStateException (object in wrong state), or a domain-specific subclass.
org. openrewrite. kotlin. bestpractices. FindBareExceptionThrow$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. bestpractices. FindBareExceptionThrow$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.