Find functions with throw of a checked exception missing @Throws
ProprietaryKotlin doesn't track checked exceptions, so a function that throws IOException looks unchecked to a Java caller — try { … } catch (IOException e) { … } won't compile without @Throws(IOException::class) on the Kotlin declaration. Flag declarations that throw a Throwable whose Java analog is checked.
org. openrewrite. kotlin. interop. FindMissingThrowsAnnotation$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. interop. FindMissingThrowsAnnotation$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.