mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Merge branch 'develop' into fix/6371-save-file-name-conflicts
This commit is contained in:
+7
-8
@@ -57,16 +57,16 @@ class KonsistClassNameTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `Classes extending 'PreviewParameterProvider' name MUST end with 'Provider' and MUST contain provided class name`() {
|
||||
fun `Classes extending 'PreviewParameterProvider' name MUST end with 'PreviewParam' and MUST contain provided class name`() {
|
||||
Konsist.scopeFromProduction()
|
||||
.classes()
|
||||
.withAllParentsOf(PreviewParameterProvider::class)
|
||||
.withoutName(
|
||||
"AspectRatioProvider",
|
||||
"EditableAvatarViewUriProvider",
|
||||
"LoginModeViewErrorProvider",
|
||||
"OverlapRatioProvider",
|
||||
"TextFileContentProvider",
|
||||
"AspectRatioPreviewParam",
|
||||
"EditableAvatarViewUriPreviewParam",
|
||||
"LoginModeViewErrorPreviewParam",
|
||||
"OverlapRatioPreviewParam",
|
||||
"TextFileContentPreviewParam",
|
||||
)
|
||||
.also {
|
||||
// Check that classes are actually found
|
||||
@@ -82,8 +82,7 @@ class KonsistClassNameTest {
|
||||
.removeSuffix("?")
|
||||
.replace(".", "")
|
||||
val name = klass.name
|
||||
name.endsWith("Provider") &&
|
||||
name.endsWith("PreviewProvider").not() &&
|
||||
name.endsWith("PreviewParam") &&
|
||||
name.contains(providedType)
|
||||
}
|
||||
}
|
||||
|
||||
LFS
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user