Tweak Konsist check to allow LongPress actions

This commit is contained in:
Jorge Martín
2026-06-01 11:38:35 +02:00
parent 77dbd56e4e
commit bfcce0e94b
@@ -19,7 +19,7 @@ class KonsistParameterNameTest {
Konsist.scopeFromProject()
.functions()
.withParameter { parameter ->
parameter.name.endsWith("Press")
parameter.name.endsWith("Press") && !parameter.name.endsWith("LongPress")
}
.assertEmpty(additionalMessage = "Please rename the parameter, for instance from 'onBackPress' to 'onBackClick'.")
}