aaschmid / gradle-cpd-plugin

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

feature request: html report #69

Open jscancella opened 1 year ago

jscancella commented 1 year 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 1 year 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 1 year 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 1 year 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...