PoisonedYouth
12/14/2023, 10:44 AMNatalia Peterwas
12/15/2023, 7:26 AMval classes = Konsist
.scopeFromProject()
.classes()
val interfaces = Konsist
.scopeFromProject()
.interfaces()
val objects = Konsist
.scopeFromProject()
.objects()
val scope = classes + interfaces + objects
scope
.withNameEndingWith("Suffix")
.assertTrue { ... }
PoisonedYouth
12/15/2023, 7:31 AMNatalia Peterwas
12/15/2023, 7:36 AMdeclarationsOf
, but it will only work if we want to add simple checks:
Konsist
.scopeFromProject()
.declarationsOf<KoParentProvider>()
.assertTrue {
it.hasParentWithName("SomeName")
}
PoisonedYouth
12/15/2023, 7:37 AM