Find manual null-check idioms
Proprietaryif (x != null) x.foo() / if (x == null) return … / if (x == null) throw … patterns where Kotlin's ?., ?: return, and ?: throw operators express the same intent in expression position.
org. openrewrite. kotlin. idiom. FindNullCheckIdioms$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. idiom. FindNullCheckIdioms$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.
Recipe list
It runs these recipes, in this order.