Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2749

CheckStyle error: File does not end with a newline (Windows vs Unix)

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.0
    • Affects Version/s: None
    • Component/s: Build
    • Labels:
      None

      Hello,

      There is a checkStyle error when i build master branch on Windows : File does not end with a newline.

      By default, checkstyle use the system line separator.
      I checkout code from unix system and build on windows.
      Or, line separator are different.

      So, configure checkstyle to use "crlf" (Windows-style), "cr" (Mac-style), "lf" (Unix-style)

      http://checkstyle.sourceforge.net/config_misc.html#NewlineAtEndOfFile

      <module name="NewlineAtEndOfFile">
              <property name="lineSeparator" value="lf_cr_crlf" />
          </module>
      

      Build is success on windows with this configuration

      Farès

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            fares.hassak@gmail.com Farès Hassak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: