Find cast and nullable-shape idioms
ProprietaryUnsafe as casts vs as?, takeIf { }?.let { } chains, takeUnless { !p } double-negatives, deep ?. safe-call chains, explicit return null statements.
org. openrewrite. kotlin. idiom. FindCastAndNullableShapes$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. idiom. FindCastAndNullableShapes$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.