Merge remote-tracking branch 'origin/develop' into HEAD

This commit is contained in:
bxdxnn
2026-08-27 18:40:10 +00:00
596 changed files with 5364 additions and 2447 deletions
@@ -49,12 +49,12 @@ class KonsistArchitectureTest {
}
@Test
fun `Events MUST be sealed interface`() {
fun `Event MUST be sealed interface`() {
Konsist.scopeFromProject()
.classes()
.withSealedModifier()
.withNameEndingWith("Events")
.assertEmpty(additionalMessage = "Events class MUST be sealed interface")
.withNameEndingWith("Event")
.assertEmpty(additionalMessage = "Event class MUST be sealed interface")
}
@Test
@@ -103,6 +103,7 @@ class KonsistClassNameTest {
"FakeImageLoader",
"FakeKeyStore",
"FakeListenableFuture",
"FakeMediaStoreContentProvider",
"FakeParentNode",
)
.assertTrue {
@@ -67,11 +67,14 @@ class KonsistImmutableTest {
}
@Test
fun `Immutable annotation is not used on sealed interface for Presenter Events`() {
fun `Immutable annotation is not used on sealed interface for Presenter Event`() {
Konsist
.scopeFromProduction()
.interfaces()
.withNameEndingWith("Events")
.withoutName(
"LatestEvent",
)
.withNameEndingWith("Event")
.withAnnotationOf(Immutable::class)
.assertEmpty()
}
@@ -134,6 +134,7 @@ class KonsistPreviewTest {
"SecureBackupSetupViewChangePreview",
"SelectedUserCannotRemovePreview",
"SpaceMembersViewNoHeroesPreview",
"SyncStateViewServerUnreachablePreview",
"TextComposerAddCaptionPreview",
"TextComposerCaptionPreview",
"TextComposerEditCaptionPreview",