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

Niels Basjes commented on RAT-347:
----------------------------------

This was caused by the fact that the gitignore improvements I wrote (code: 
[https://github.com/nielsbasjes/codeowners/)] could not handle 0 byte 
.gitignore files.

I have already fixed this (and several other) problems, released a new version 
and this new version has been included the apache-rat-plugin code base since 
yesterday ( RAT-348 ).

To verify I have built the latest code of this plugin an updated one of my 
projects where I have added as a test an empty (0 byte) .gitignore file. 
{code:java}
[INFO] --- apache-rat:0.16.1-SNAPSHOT:check (default) @ codeowners-parent ---
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 39 licenses.
[INFO]  {code}
where the current 0.16 version gives on the same codebase
{code:java}
[INFO] --- apache-rat:0.16:check (default) @ codeowners-parent ---
line 1:0 mismatched input '<EOF>' expecting {'!', COMMENT, NEWLINE, 
FILEEXPRESSION}
line 1:0 mismatched input '<EOF>' expecting {'!', COMMENT, NEWLINE, 
FILEEXPRESSION}
line 1:0 mismatched input '<EOF>' expecting {'!', COMMENT, NEWLINE, 
FILEEXPRESSION}
line 25:0 token recognition error at: '*~'
line 40:0 token recognition error at: 'x\n'
line 42:0 token recognition error at: 'y\n'
line 44:0 token recognition error at: 'z\n'
line 60:0 token recognition error at: '.~'
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 39 licenses.
[INFO]  {code}
 

Important to note is that although it gives some bad looking messages the 
overall impact is that these specific .gitignore lines are simply only ignored.

So the overall impact is limited.

>  line 1:0 mismatched input '<EOF>' expecting {'!', COMMENT, NEWLINE, 
> FILEEXPRESSION}
> ------------------------------------------------------------------------------------
>
>                 Key: RAT-347
>                 URL: https://issues.apache.org/jira/browse/RAT-347
>             Project: Apache Rat
>          Issue Type: Bug
>    Affects Versions: 0.16
>            Reporter: Gary D. Gregory
>            Priority: Major
>             Fix For: 0.16.1
>
>
> After applying the new configuration mechanism for custom licenses 
> [~ggregory] ran into this issue.
> [~ggregory] can you add links to the project/branch here so that we do not 
> mix up things over at RAT-343 - thanks.
> [~claud...@users.sourceforge.net] fyi



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to