Question about DRY plugin
5 messages

Tomas Hellberg <tomas@hellberg.name> Wed, Jun 2, 2010 at 08:42
To: ullrich.hafner@gmail.com
Ullrich,

I'm using your DRY plugin with CPD for Hudson and I have a question:

In the code base that I am analyzing, there are several files with the
same name in different locations. CPD detects that there are
duplicated code in them like this:

> File: rmm.c, Line: 168, Type: Duplicate Code, Priority: High
> 71 lines of duplicate code.
>
> Duplicated in:
>
> rmm.c (175)

and

> File: rmm.c, Line: 263, Type: Duplicate Code, Priority: High
> 122 lines of duplicate code.
>
> Duplicated in:
>
> rmm.c (273)

Since there are more than two files with the name rmm.c, I cannot tell
what files this duplication occurs in. Is it possible to see the path
of the files in some way?

Regards

--
Tomas Hellberg

Ullrich Hafner <ullrich.hafner@gmail.com> Wed, Jun 2, 2010 at 09:02
To: Tomas Hellberg <tomas@hellberg.name>
Hi Tomas,

do the links refer to the correct files? Then the path is correctly set, it is just not shown.

I must admit that the tools are optimized for Java where you have a package and a class name. Maybe we can provide a path property that is used if there is no package (or namespace) available.

Ulli
[Quoted text hidden]

Tomas Hellberg <tomas@hellberg.name> Wed, Jun 2, 2010 at 09:05
To: Ullrich Hafner <ullrich.hafner@gmail.com>
Yes, the links are correct. The path, which is present in the XML
report, is just not shown. It would be very helpful if the path could
also be shown.

--
Tomas
[Quoted text hidden]

Ullrich Hafner <ullrich.hafner@gmail.com> Wed, Jun 2, 2010 at 09:09
To: Tomas Hellberg <tomas@hellberg.name>
On 06/02/2010 09:05 AM, Tomas Hellberg wrote:
Yes, the links are correct. The path, which is present in the XML
report, is just not shown. It would be very helpful if the path could
also be shown.

  
Can you please create an issue? Please also attach a dry-warnings.xml file from the build folder, that helps to build a test setup.

Thanks Ulli

Tomas Hellberg <tomas@hellberg.name> Wed, Jun 2, 2010 at 09:12
To: Ullrich Hafner <ullrich.hafner@gmail.com>
Will do. Thanks!
--
Tomas
[Quoted text hidden]