mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Tweak Konsist check to allow LongPress actions
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ class KonsistParameterNameTest {
|
|||||||
Konsist.scopeFromProject()
|
Konsist.scopeFromProject()
|
||||||
.functions()
|
.functions()
|
||||||
.withParameter { parameter ->
|
.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'.")
|
.assertEmpty(additionalMessage = "Please rename the parameter, for instance from 'onBackPress' to 'onBackClick'.")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user