Find n.dp allocations inside a @Composable body
ProprietaryDp is an inline value class — most .dp accesses compile to a primitive. But certain platforms (older Kotlin, KMP non-JVM targets) box the value. In hot composables, prefer hoisting private val padding = 8.dp to file scope so the conversion runs once.
org. openrewrite. kotlin. compose. FindDpAllocationInComposableBody$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. compose. FindDpAllocationInComposableBody$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.