Uploaded image for project: 'Apache Rat'
  1. Apache Rat
  2. RAT-156

Add some symmetry when applying license headers to files with file type specific headers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10
    • 0.11
    • 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 {
        ...
      }
      

      Attachments

        Activity

          People

            dennisl@apache.org Dennis Lundberg
            dennisl@apache.org Dennis Lundberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: