averbraeck / djunits

Delft Java UNIT System for using strongly-typed quantities and units
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Checkstyle: accept cr or lf as last character in generated files #29

Closed averbraeck closed 2 hours ago

averbraeck commented 2 hours ago

Currently, checkstyle has an issue with generated code that yields a warning that the file does not end with CRLF (but apparently with CR or LF). The checkstyle code can be made a bit more lenient.

averbraeck commented 2 hours ago

Change in dsol-checks.xml:

  <module name="NewlineAtEndOfFile">
    <property name="severity" value="warning"/>
    <property name="lineSeparator" value="lf_cr_crlf"/>
    <property name="fileExtensions" value="java"/>
  </module>

By the way, to allow all three is also the default checkstyle setting at the moment.

averbraeck commented 2 hours ago

Completed. Hundreds of warnings disappeared.