harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: [tests] cpd report available
Date Wed, 22 Nov 2006 17:16:52 GMT
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
> 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.


View raw message