Skip to content

Commit 0fb6a18

Browse files
authored
Update ParameterOrder messaging (#269)
In some cases where the order is wrong, the suggested order might not be the best, so I'm gonna soften the message a little.
1 parent 34d697a commit 0fb6a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/common/src/main/kotlin/io/nlopez/compose/rules/ParameterOrder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class ParameterOrder : ComposeKtVisitor {
7373

7474
fun createErrorMessage(currentOrder: String, properOrder: String): String = """
7575
Parameters in a composable function should be ordered following this pattern: params without defaults, modifiers, params with defaults and optionally, a trailing function that might not have a default param.
76-
Current params are: [$currentOrder] but should be [$properOrder].
76+
Current params are: [$currentOrder] but could be [$properOrder].
7777
7878
See https://mrmans0n.github.io/compose-rules/rules/#ordering-composable-parameters-properly for more information.
7979
""".trimIndent()

0 commit comments

Comments
 (0)