drewhannay
07/19/2024, 11:37 PM@Suppress
annotation in my case)stelios
07/19/2024, 11:41 PMval classesWithSuppress = Konsist.scopeFromProduction().classes().withAnnotationNamed("Suppress")
val functionsWithSuppress = Konsist.scopeFromProduction().functions().withAnnotationNamed("Suppress")
stelios
07/19/2024, 11:42 PMwithAnnotationOf(Suppress::class)
drewhannay
07/19/2024, 11:42 PMdrewhannay
07/19/2024, 11:46 PMval scope = Konsist.scopeFromProject().classes() +
Konsist.scopeFromProject().functions() +
Konsist.scopeFromProject().properties() +
Konsist.scopeFromProject().objects() +
Konsist.scopeFromProject().interfaces()
scope
.withAnnotationNamed("Suppress")
.also { println(it.size) }
I get 96 results, and i’m expecting 150stelios
07/20/2024, 12:00 AM.functions()
.withVariable {
it.hasAnnotationWithName("Suppress")
}
stelios
07/20/2024, 12:01 AM.files
.withFunction {
it.text.contains("Suppress")
}
drewhannay
07/20/2024, 12:10 AMif(...)
)stelios
07/21/2024, 7:56 PMigor.wojda
09/10/2024, 10:42 AMtext
property to look for @Suppress
string
BTW Konsist 0.16.0
has recently introduced classesAndInterfacesAndObjects
declaration accessor