Use emptyMap<K, V>() instead of mapOf<K, V>()
ProprietarymapOf() with no entries delegates to emptyMap(). Call the named factory directly to make the empty-by-construction intent visible.
org. openrewrite. kotlin. stdlib. UseEmptyMapForMapOfNoArgs$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. stdlib. UseEmptyMapForMapOfNoArgs$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.