Find top-level functions missing @JvmName
ProprietaryTop-level Kotlin functions (including extension functions) compile to static methods on a <FileName>Kt facade — Java callers see MyKotlinUtilsKt.bar(...) with a name the source file doesn't suggest. @JvmName("bar") on the function (or @file:JvmName("...") on the file) gives Java callers a name to bind against.
org. openrewrite. kotlin. interop. FindMissingJvmNameOnExtensionFunction$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. interop. FindMissingJvmNameOnExtensionFunction$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.