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

Checkstyle requires LF line endings: add .gitattributes hint

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10.2
    • 1.11.0
    • java

    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

        Issue Links

          Activity

            People

              dkulp Daniel Kulp
              slominskir Ryan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m