Is there any way to fail a build on an unused OptI...
# random
e
Is there any way to fail a build on an unused OptIn annotation? I enable
allWarningsAsErrors
but it doesn't get treated as a compiler warning.
t
an unused OptIn annotation
Just to confirm - so this scenario arises when an experimental API matures and you want to remove the annotation ?
e
Yes, exactly that
t
I assume you are aware of R8 removing these unused items anyway. But in case you are really trying to detect it, I think custom lint rules wud work 🤔