Skip to content

Commit aaeac20

Browse files
authoredFeb 20, 2025
1 parent 5cef4f4 commit aaeac20

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed
 

‎rules/common/src/main/kotlin/io/nlopez/compose/rules/ParameterNaming.kt

+1
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ class ParameterNaming : ComposeKtVisitor {
228228
private val ExceptionsInCompose by lazy {
229229
setOf(
230230
"onFocusChanged",
231+
"onPlaced", // androidx.compose.ui.layout
231232
"onValueChangeFinished", // androidx.compose.material3.RangeSlider
232233
)
233234
}

‎rules/detekt/src/test/kotlin/io/nlopez/compose/rules/detekt/ParameterNamingCheckTest.kt

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class ParameterNamingCheckTest {
6868
onPotato: Potato,
6969
onEmbed: () -> Unit,
7070
onFocusChanged: () -> Unit,
71+
onPlaced: (LayoutCoordinates) -> Unit,
7172
onValueChangeFinished: () -> Unit,
7273
) {}
7374
""".trimIndent()

‎rules/ktlint/src/test/kotlin/io/nlopez/compose/rules/ktlint/ParameterNamingCheckTest.kt

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class ParameterNamingCheckTest {
7676
onPotato: Potato,
7777
onEmbed: () -> Unit,
7878
onFocusChanged: () -> Unit,
79+
onPlaced: (LayoutCoordinates) -> Unit,
7980
onValueChangeFinished: () -> Unit,
8081
) {}
8182
""".trimIndent()

0 commit comments

Comments
 (0)