https://kotlinlang.org logo
#detekt
Title
# detekt
c

Callum Seabrook

09/12/2021, 5:02 PM
Does anyone here know if it's at all possible to suppress rules everywhere that a specific annotation (not
Suppress
) is present? And if so, how?
g

gammax

09/12/2021, 6:04 PM
Are you asking for things annotated with
@Compose
?
b

Brais Gabin

09/12/2021, 6:29 PM
It's not possible right now. But just yesterday I implemented exactly that feature: https://github.com/detekt/detekt/pull/4102 so, maybe, the next release will include it.
n

Nick

10/22/2021, 5:39 PM
When do you think this will be released? We want to filter things annotated with
@Preview
for Jetpack compose. Currently with this function:
Copy code
@Preview
@Composable
private fun DetektRocks() {

}
we get the UnusedPrivateMember error.
g

gammax

10/26/2021, 11:39 AM
As soon as possible 🙂
😀 1
22 Views