Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.10
-
None
-
None
Description
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:
<?xml version='1.0'?> [license header] [empty line] <document> ... </document>
package org.apache.rat; [license header] [empty line] public class MyClass { ... }
We should add an empty line before the license headers, like this:
<?xml version='1.0'?> [empty line] [license header] [empty line] <document> ... </document>
package org.apache.rat; [empty line] [license header] [empty line] public class MyClass { ... }