mrmans0n / compose-rules

Lint rules for ktlint/detekt aimed to contribute to a healthier usage of Compose. Actively maintained and evolved fork of the Twitter Compose rules.
https://mrmans0n.github.io/compose-rules
Other
550 stars 21 forks source link

[new functionality] RememberRipple for compose 1.7 #316

Closed rulogarcillan closed 1 month ago

rulogarcillan commented 1 month ago

In compose 1.7 the use of rememberRipple is discouraged, a rule for this would be great

mrmans0n commented 1 month ago

From the documentation, it has already been marked as deprecated https://developer.android.com/reference/kotlin/androidx/compose/material/ripple/package-summary#rememberRipple(kotlin.Boolean,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Color)

This ideally would be caught by the IDE already, plus the kotlin compiler warnings when building.