aaschmid / gradle-cpd-plugin

Gradle plugin to find duplicate code using PMDs copy/paste detection (= CPD).
Apache License 2.0
95 stars 12 forks source link

feature request: html report #69

Open jscancella opened 10 months ago

jscancella commented 10 months ago

It would be nice if cpdcheck would generate a html report like when running ./gradlew.bat test and put it in $buildDir/reports/cpd: image

aaschmid commented 10 months ago

As far as I understand this is not possible by CPD out of the box, but you can use xml with xslt as documented in https://pmd.github.io/pmd/pmd_userdocs_cpd_report_formats.html#xslt. Does that help?

jscancella commented 10 months ago

I think spotbugs uses xslt to generate their report. Not sure when I will have time, but maybe I can do a pull request to implement it

aaschmid commented 10 months ago

But you now can already use xml and the xslt transformators to generate your html report yourself. That would the first thing I would test...