You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by Claude Warren <cl...@xenei.com> on 2024/09/01 13:02:38 UTC

Re: [RAT] [DISCUSSION] full path in reports?

I think I am leaning toward a mid point.

If you run the tool on the directory /home/me/workspace/myproject/foo

then all reported files should be relative to that directory.
So
/home/me/workspace/myproject/foo/pom.xml  is reported as pom.xml
/home/me/workspace/myproject/foo/src/main/java/org/example/foo/Foo.java is
reported as src/main/java/org/example/foo/Foo.java

This way you can find the file relative to the path but the report does not
leak the directory structure above the project.  This will also make
comparing reports from 2 different systems easier.

Claude

On Fri, Aug 30, 2024 at 4:06 PM P. Ottlinger <po...@apache.org> wrote:

> Am 30.08.24 um 17:03 schrieb Claude Warren:
> > The long version is the current value.
>
> +1
>
> I'm in favour of the long version as I wouldn't find src.txt in a more
> complex setup and know that some downstream users have big repos to run
> RAT on :)
>
> Cheers,
> Phil
>
>

-- 
LinkedIn: http://www.linkedin.com/in/claudewarren

Re: [RAT] [DISCUSSION] full path in reports?

Posted by Claude Warren <cl...@xenei.com>.
I just found a couple of tests that expect this result, so we were doing it
at some point.

On Sun, Sep 1, 2024 at 2:02 PM Claude Warren <cl...@xenei.com> wrote:

> I think I am leaning toward a mid point.
>
> If you run the tool on the directory /home/me/workspace/myproject/foo
>
> then all reported files should be relative to that directory.
> So
> /home/me/workspace/myproject/foo/pom.xml  is reported as pom.xml
> /home/me/workspace/myproject/foo/src/main/java/org/example/foo/Foo.java is
> reported as src/main/java/org/example/foo/Foo.java
>
> This way you can find the file relative to the path but the report does
> not leak the directory structure above the project.  This will also make
> comparing reports from 2 different systems easier.
>
> Claude
>
> On Fri, Aug 30, 2024 at 4:06 PM P. Ottlinger <po...@apache.org>
> wrote:
>
>> Am 30.08.24 um 17:03 schrieb Claude Warren:
>> > The long version is the current value.
>>
>> +1
>>
>> I'm in favour of the long version as I wouldn't find src.txt in a more
>> complex setup and know that some downstream users have big repos to run
>> RAT on :)
>>
>> Cheers,
>> Phil
>>
>>
>
> --
> LinkedIn: http://www.linkedin.com/in/claudewarren
>


-- 
LinkedIn: http://www.linkedin.com/in/claudewarren