-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3947 from element-hq/renovate/com.lemonappdev-kon…
…sist-0.x Update dependency com.lemonappdev:konsist to v0.17.0
- Loading branch information
Showing
7 changed files
with
87 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...lement/android/tests/konsist/failures/FailingComposableWithNonImmutableSealedInterface.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright 2024 New Vector Ltd. | ||
* | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
* Please see LICENSE in the repository root for full details. | ||
*/ | ||
|
||
package io.element.android.tests.konsist.failures | ||
|
||
import androidx.compose.runtime.Composable | ||
|
||
// Make test `Sealed interface used in Composable MUST be Immutable or Stable` fails | ||
|
||
sealed interface SealedInterface | ||
|
||
@Composable | ||
fun FailingComposableWithNonImmutableSealedInterface( | ||
sealedInterface: SealedInterface | ||
) { | ||
} |
22 changes: 22 additions & 0 deletions
22
...s/konsist/src/main/kotlin/io/element/android/tests/konsist/failures/FakeWrongClassName.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright 2024 New Vector Ltd. | ||
* | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
* Please see LICENSE in the repository root for full details. | ||
*/ | ||
|
||
package io.element.android.tests.konsist.failures | ||
|
||
// Make test `Fake classes must be named using Fake and the interface it fakes` fails | ||
|
||
interface MyInterface | ||
|
||
// This class should be named FakeMyInterface | ||
class FakeWrongClassName : MyInterface | ||
|
||
class MyClass { | ||
interface MyFactory | ||
} | ||
|
||
// This class should be named FakeMyClassMyFactory | ||
class FakeWrongClassSubInterfaceName : MyClass.MyFactory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters