[ 
https://issues.apache.org/jira/browse/RAT-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Lundberg resolved RAT-156.
---------------------------------

    Resolution: Fixed

Fixed in [r1545788|http://svn.apache.org/viewvc?view=revision&revision=1545788].

> Add some symmetry when applying license headers to files with file type 
> specific headers
> ----------------------------------------------------------------------------------------
>
>                 Key: RAT-156
>                 URL: https://issues.apache.org/jira/browse/RAT-156
>             Project: Apache Rat
>          Issue Type: Bug
>    Affects Versions: 0.10
>            Reporter: Dennis Lundberg
>            Assignee: Dennis Lundberg
>             Fix For: 0.11
>
>
> Some file types may have a file type specific "header". For example a java 
> file should start with a package declaration, an XML file might have an XML 
> declaration and similarly for PHP files. The current output in not 
> symmetrical when applying license headers to these files.
> Current formats, after license headers have been applied by Rat:
> {code:xml}
> <?xml version='1.0'?>
> [license header]
> [empty line]
> <document>
>   ...
> </document>
> {code}
> {code:java}
> package org.apache.rat;
> [license header]
> [empty line]
> public class MyClass {
>   ...
> }
> {code}
> We should add an empty line before the license headers, like this:
> {code:xml}
> <?xml version='1.0'?>
> [empty line]
> [license header]
> [empty line]
> <document>
>   ...
> </document>
> {code}
> {code:java}
> package org.apache.rat;
> [empty line]
> [license header]
> [empty line]
> public class MyClass {
>   ...
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to