You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2015/11/13 13:22:10 UTC

[jira] [Commented] (RAT-209) Ignore short files when checking licenses

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

Sebb commented on RAT-209:
--------------------------

The criteria would need to be added as optional configuration items.
Note that a line count on its own would be insufficient, as some files may consist of a single long line - e.g. compressed Javascript.

Probably only need the file size, with a hard upper limit which could be set fairly low, e.g. 80

> Ignore short files when checking licenses
> -----------------------------------------
>
>                 Key: RAT-209
>                 URL: https://issues.apache.org/jira/browse/RAT-209
>             Project: Apache Rat
>          Issue Type: Improvement
>            Reporter: Sebb
>
> A license header is not usually required for short files that have no creative content.
> For example
> {code:title=project.css|borderStyle=solid}
> @import url("http://commons.apache.org/style/commons-maven.css");
> {code}
> It would be useful to be able to -ignore- skip these when listing which files don't have headers.
> The criteria for ignoring files could be expressed as file size and/or number of lines. The criteria used should be documented on the RAT report.
> Files which don't have headers but which fulfil the criteria could either be listed at the end of the report in a separate section from the missing headers, or they could be listed in the main file list with a different category, e.g. NA.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)