Prefer emptyList() / emptySet() / emptyMap() over zero-arg builders
ProprietaryWhen listOf() / setOf() / mapOf() are called with no entries, replace them with the explicit emptyList() / emptySet() / emptyMap() factories so the empty-by-construction intent is visible at the call site.
org. openrewrite. kotlin. stdlib. EmptyConstructorShorthands$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. stdlib. EmptyConstructorShorthands$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.