[ 
https://issues.apache.org/jira/browse/RAT-240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16241095#comment-16241095
 ] 

Philipp Ottlinger commented on RAT-240:
---------------------------------------

Are you working on a specific branch?

I've checked out mynewt-master and added:
{code}
$ git diff
diff --git a/.rat-excludes b/.rat-excludes
index bc3eb00..bc08173 100644
--- a/.rat-excludes
+++ b/.rat-excludes
@@ -344,3 +344,6 @@ split-calliope_mini.ld
 
 # Bluetooth Mesh - Apache 2.0 License
 mesh
+
+docs*
+run.sh

{code}
to .rat-excludes.

Running RAT yields expectedly missing files:
{code}
✔ ~/workspace/mynewt-core [master|✚ 1…1] 
23:30 $ ./run.sh 
Ignored 95 lines in your exclusion files as comments or empty lines.

*****************************************************
Summary
-------
Generated at: 2017-11-06T23:30:04+01:00

Notes: 4
Binaries: 0
Archives: 0
Standards: 1841

Apache Licensed: 1795
Generated Documents: 0

JavaDocs are generated, thus a license header is optional.
Generated files do not require license headers.

30 Unknown Licenses

*****************************************************

Files with unapproved licenses:

  ./hw/bsp/ci40/src/arch/mips/abiflags.S
  ./hw/bsp/ci40/src/arch/mips/gcc_startup_mips.S
  ./hw/bsp/pic32mx470_6lp_clicker/src/sbrk.c
  ./hw/bsp/pic32mz2048_wi-fire/src/sbrk.c
  ./hw/mips-hal/src/arch/mips/__exit.c
  ./hw/mips-hal/src/arch/mips/cache.S
  ./hw/mips-hal/src/arch/mips/cache.h
  ./hw/mips-hal/src/arch/mips/cache_ops.S
  ./hw/mips-hal/src/arch/mips/link.c
  ./hw/mips-hal/src/arch/mips/m32cache.S
  ./hw/mips-hal/src/arch/mips/m32cache.h
  ./hw/mips-hal/src/arch/mips/m32cache_ops.S
  ./hw/mips-hal/src/arch/mips/m32tlb_ops.S
  ./hw/mips-hal/src/arch/mips/m64tlb_ops.S
  ./hw/mips-hal/src/arch/mips/mips_cm3_l2size.S
  ./hw/mips-hal/src/arch/mips/mips_excpt_boot.S
  ./hw/mips-hal/src/arch/mips/mips_excpt_entry.S
  ./hw/mips-hal/src/arch/mips/mips_excpt_handler.c
  ./hw/mips-hal/src/arch/mips/mips_excpt_isr.S
  ./hw/mips-hal/src/arch/mips/mips_excpt_register.S
  ./hw/mips-hal/src/arch/mips/mips_fp.S
  ./hw/mips-hal/src/arch/mips/mips_l2size.S
  ./hw/mips-hal/src/arch/mips/mips_msa.S
  ./hw/mips-hal/src/arch/mips/mips_xpa.S
  ./hw/mips-hal/src/arch/mips/mxxtlb_ops.S
  ./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
  ./net/nimble/host/test/src/ble_hs_test_util_hci.c

*****************************************************

*****************************************************
  Files with Apache License headers will be marked AL
....
{code}
but not the situation you are describing.

run.sh looks like that to ease debugging:
{code}
#!/bin/bash
java -jar ../rat-trunk/apache-rat/target/apache-rat-0.13-SNAPSHOT.jar -E 
.rat-excludes -d . | more
{code}


Which Java version are you using?
I'm on
$ java --version
java 9.0.1
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
same result with Oracle JDK1.8_152.

Not sure how I can help you here anymore.

> 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
>
>         Attachments: rat.txt
>
>
> 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)

Reply via email to