Paulex Yang wrote: > Stefano Mazzocchi wrote: >> I've managed to run CPD[1] against harmony classlib. >> >> CPD (or cut/paste detector) is a tool that is capable of showing where >> code was cut/pasted from different parts of the source tree. >> >> I managed to filter out all the tests (because they seem to have a good >> amount of cut/paste and that is not necessarily a problem) but there is >> still a lot of code that is was cut/pasted and might be worth >> considering for refactoring. >> Find it at >> >> http://67.86.14.213:10000/results/latest/cpd.html >> > Cool! possible to exclude some special classes, such as Local_***.java > and nls/Messages.java? They are either only data, or intentionally keep > a copy in every module.
sure thing. The data is dumped by CPD in XML and then I use an XSLT stylesheet to generate that page, I can filter out whatever we want. I'll remove Locals and Messages and regenerate. -- Stefano.
