Does anyone here know if it's at all possible to s...
# detekt
c
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
Are you asking for things annotated with
@Compose
?
b
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
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
As soon as possible 🙂
😀 1