aaschmid/gradle-cpd-plugin

cpd can't handle the sign "`"

contrudar opened this issue · 2 comments

Hello, I have Java and Kotlin code in one project. Everything worked well until the kotlin line was added:
DialogEntity.ID.in(dialogIdList))
and i got this error
Lexical error in file path\List101Database.kt at line 51, column 50. Encountered: "`" (96), after : ""

Can it be somehow fixed? thanks in advance

Hi @contrudar,

unfortunately CPD cannot handle Kotlin syntax. Can you just exclude the Kotlin source files using

tasks.withType(Cpd) {
    exclude "*.kt"
}

see also #22

thx