Attempting to use Kotlin PSI (writing a Detekt rul...
# getting-started
m
Attempting to use Kotlin PSI (writing a Detekt rule). Trying to find annotation on a function.
function.annotationEntries.any { it.shortName?.identifier == "PublishedApi" }
works but may be false-positive for
some.custom.package.PublishedApi
. How should I fix this, where's annotation FQN?
k
m
I'm using PSI, not reflect.