Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Preserve file comment headers #47

Merged
merged 1 commit into from Sep 13, 2013

Commits on Sep 13, 2013

  1. Preserve file comment headers

    Comment headers in files often contain important metadata about the file
    (copyright, license, contact information) that should not be removed.
    
    A note about the implementation: read-comment-header can be implemented
    in ~3 lines by using .readLine. However, .readLine discards newlines, so
    slamhound would have to make an assumption about what newlines have been
    discarded, which is a mistake.
    
    e.g. Editing Unix source files on a Windows machine would produce \r\n
         line terminators if we join the header lines with
         (System/getProperty "line.separator")
    guns committed Sep 13, 2013
    Copy the full SHA
    3c058a0 View commit details
    Browse the repository at this point in the history