Find Compose stability issues

Proprietary

Surface declarations where Compose's stability inferrer will refuse to mark a parameter, property, or class as stable: MutableList/MutableMap/MutableSet parameters, read-only List parameters, @Stable/@Immutable annotations applied to classes with var fields, and data class declarations holding List<T> properties.

org.openrewrite.kotlin.compose.FindComposeStabilityIssues$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.compose.FindComposeStabilityIssues$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 @Composable functions with MutableList/MutableMap/MutableSet parameters
  2. Find @Composable functions with List/Map/Set parameters
  3. Find @Stable on classes with var properties
  4. Find @Immutable on classes with var properties
  5. Find @Stable classes holding mutable-collection properties
  6. Find data class declarations with List<T> properties
  7. Find lambda parameters on @Composable functions
  8. Find Array<T> parameters on @Composable functions
  9. Find Flow<T> / StateFlow<T> parameters on @Composable functions
  10. Find android.content.Context parameters on @Composable functions