[
https://issues.apache.org/jira/browse/RAT-240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16189371#comment-16189371
]
Szymon Janc commented on RAT-240:
---------------------------------
Hi,
We use RAT in Apache Mynewt project for license checks.
here is the link for our exclude
https://github.com/apache/mynewt-core/blob/master/.rat-excludes
our project code structure if that includes are always in include/ folders, and
sources are in src/
this is 'embedded' project so we have a lot of imported code from SDK/BSP for
board support,
some libs imported for crypt, protocols etc
result in structure like this:
eg
hw/bsp/boardA/src/bsp.c
hw/bsp/boardA/include/bsp.h
hw/bsp/boardB/src/bsp.c
hw/bsp/boardB/include/bsp.h
net/lora/src/foo.c
net/lora/include/foo.h
both can be on different licenses which we would like to exclude from RAT check
(with proper comment in exclude file)
unfortunately currently only single depth path are accepted by RAT (eg
src/bsp.c) but not full path.
If I provide hw/bsp/boardA/src/bsp.c it is not excluded by RAT.
So, for us, the best solution would be option to exclude by providing full path
(either folder or explicitly files would work) eg
hw/bsp/boardA/*
hw/bsp/boardA/src/foo.c
If this is no possible (due to the way RAT works) then maybe RAT could have an
option for implicitly using .rat-exclude file from folder where checked files
is located?
That would also work for us without risk of ambiguous names matching.
Hope this clarifies our needs :)
> .rat-excludes not matching full path
> ------------------------------------
>
> Key: RAT-240
> URL: https://issues.apache.org/jira/browse/RAT-240
> Project: Apache Rat
> Issue Type: Bug
> Reporter: Szymon Janc
> Fix For: 0.12
>
>
> it is not possible to exclude file (or folder) by providing full path
> eg
> foo/foo2/main.c
> bar/bar2/main.c
> it is not possible to match only one of those file from project top directory
> .rat-excludes file.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)