Konsist test: ignore Composable extensions.
This commit is contained in:
parent
c4dc024c63
commit
f08c80358c
1 changed files with 2 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ import com.lemonappdev.konsist.api.ext.list.withAllAnnotationsOf
|
|||
import com.lemonappdev.konsist.api.ext.list.withTopLevel
|
||||
import com.lemonappdev.konsist.api.ext.list.withoutName
|
||||
import com.lemonappdev.konsist.api.ext.list.withoutNameEndingWith
|
||||
import com.lemonappdev.konsist.api.ext.list.withoutReceiverType
|
||||
import com.lemonappdev.konsist.api.verify.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
|
|
@ -37,6 +38,7 @@ class KonsistComposableTest {
|
|||
.withoutModifier(KoModifier.PRIVATE)
|
||||
.withoutNameEndingWith("Preview")
|
||||
.withAllAnnotationsOf(Composable::class)
|
||||
.withoutReceiverType()
|
||||
.withoutName(
|
||||
// Add some exceptions...
|
||||
"OutlinedButton",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue