Apply Compose autofix rewrites

Proprietary

Autofix-only Compose bundle: promotes remember { mutableStateOf(emptyList/Map()) } to the snapshot-aware mutableStateListOf / mutableStateMapOf containers. The bulk of Compose remediation is judgement-call work flagged by Compose — for diff-only output, use this recipe instead.

org.openrewrite.kotlin.compose.ImproveKotlinCompose$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.compose.ImproveKotlinCompose$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.

  1. Find remember { mutableStateOf(emptyList/Map()) } candidates for snapshot-aware containers