Closed realdadfish closed 4 years ago
Thanks for the large description @realdadfish. Hm ... seems like an issue with the kotlin
tokenizer as it is not aware of ignoreAnnotations
setting if you look into https://github.com/pmd/pmd/blob/master/pmd-kotlin/src/main/java/net/sourceforge/pmd/cpd/KotlinTokenizer.java. For comparison the java tokenizer uses it: https://github.com/pmd/pmd/blob/master/pmd-java/src/main/java/net/sourceforge/pmd/cpd/JavaTokenizer.java
That's bad luck then :(
Maybe but also maybe an issue on the pmd
repo will get it implemented ...
I will close it as it also already documented in https://github.com/aaschmid/gradle-cpd-plugin#options. Don't hesitate to reopen it.
This is my configuration:
This is an example Android Room Annotation:
Still, when I analyze it with the plugin, I get
Could it be that multi-line annotations like the above one are not recognized by the option?