在Kotlin中从PMD生成的报告中获取异常

问题描述

从PMD生成报告时出现错误

net.sourceforge.pmd.PMDException:解析/Users//.kt时出错 ..

apply plugin: 'pmd'

pmd {
    toolVersion = "6.27.0"
}
task pmd(type: Pmd) {
    description 'Run PMD'
    group 'verification'
    ruleSetFiles = files("./code_quality_tools/rules-pmd.xml")
    source filetree('src/main/java/')
    include '**/*.java'
    include '**/*.kt'
    exclude '**/gen/**'
    reports {
        xml.enabled = false
        html.enabled = true
        html.destination(file("$project.buildDir/outputs/pmd/pmd.html"))
    }
    ignoreFailures = false
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)