Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3150

Checkstyle requires LF line endings: add .gitattributes hint

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.10.2
    • Fix Version/s: None
    • Component/s: java
    • Labels:
      None

      Description

      Running the Java unit tests on a Windows machine with the commonly configured git line ending configuration:

      git config --global core.autocrlf true

      Results in test failure of:

      NewlineAtEndOfFile: Expected line ending for file is LF(\n), but CRLF(\r\n) is detected.

      This is due to a checkstyle rule.   If the unit tests require LF line endings then it would be helpful to add a .gitattributes file to automatically ensure the correct line endings are used on git clone.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              slominskir Ryan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: