Find Compose stability issues
ProprietarySurface 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$KtRecipemod 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.
- Find
@Composablefunctions withMutableList/MutableMap/MutableSetparameters - Find
@Composablefunctions withList/Map/Setparameters - Find
@Stableon classes withvarproperties - Find
@Immutableon classes withvarproperties - Find
@Stableclasses holding mutable-collection properties - Find
data classdeclarations withList<T>properties - Find lambda parameters on
@Composablefunctions - Find
Array<T>parameters on@Composablefunctions - Find
Flow<T>/StateFlow<T>parameters on@Composablefunctions - Find
android.content.Contextparameters on@Composablefunctions