Dennis Lundberg created RAT-156:
-----------------------------------

             Summary: 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