[
https://issues.apache.org/jira/browse/RAT-240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16197472#comment-16197472
]
Philipp Ottlinger commented on RAT-240:
---------------------------------------
[~janc] can you verify with the current 0.13-SNAPSHOT that your stuff is
properly excluded ?!
I checked out your project and added the following example lines to your
.rat-exclude-file:
{code}
+
+# RAT-240
+#.*hw/bsp*
+/hw/bsp/pic32mz2048_wi-fire/src/sbrk.c
+/kernel/os/src/arch/pic32/*
+/hw/bsp/pic32mz2048_wi-fire/*
+/net/lora/node/
+/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/device/compiler_abstraction.h
+pic32mx470_6lp_clicker*
+run.sh
+# from the ticket itself
+/kernel/os/src/arch/pic32/
+/hw/bsp/pic32mz2048_wi-fire/
+/net/lora/node/
+/hw/mcu/nordic/src/ext/nRF5_SDK_11.0.0_89a8197/components/device/compiler_abstraction.h
+# New files?
+hw/bsp/pic32mz2048_wi-fire/src/sbrk.c
+kernel/os/include/os/arch/pic32/os/cp0defs.h
+kernel/os/src/arch/pic32/startup/cache-err-exception.S
+kernel/os/src/arch/pic32/startup/crt0.S
+kernel/os/src/arch/pic32/startup/simple-tlb-refill-exception.S
+#**.***
{code}
My local version runs with:
{code}
$ cat run.sh
#!/bin/bash
java -jar ../rat-trunk/apache-rat/target/apache-rat-0.13-SNAPSHOT.jar -E
.rat-excludes -d . | more
{code}
Is that what you need?
> CLI: RAT excludes file does not allow to set a full path
> --------------------------------------------------------
>
> Key: RAT-240
> URL: https://issues.apache.org/jira/browse/RAT-240
> Project: Apache Rat
> Issue Type: Bug
> Components: cli, scan
> Affects Versions: 0.12
> Reporter: Szymon Janc
> Assignee: Philipp Ottlinger
> 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)