Find collection null-safety idioms
ProprietarylistOf(...).filterNotNull() vs listOfNotNull(...), map { }.filterNotNull() vs mapNotNull { }, filter { it != null }.map { it!! } chains, firstOrNull patterns where single is intended, ?.x.orEmpty() mixed-call shapes.
org. openrewrite. kotlin. idiom. FindCollectionNullSafety$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. idiom. FindCollectionNullSafety$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.