Skip to content

Commit

Permalink
Improved: Set checkstyle to use LF line endings
Browse files Browse the repository at this point in the history
(OFBIZ-11428)

Setting checkstyle to use LF line endings means that a newline at the
end of a source file is correctly detected no matter whether it is
checked out with LF or CRLF line endings.
  • Loading branch information
danwatford committed Feb 28, 2020
1 parent 66aa76d commit e665f9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/checkstyle/checkstyle.xml
Expand Up @@ -30,7 +30,9 @@ under the License.
<property name="fileExtensions" value="java, properties, xml"/>

<!-- General file conventions -->
<module name="NewlineAtEndOfFile"/>
<module name="NewlineAtEndOfFile">
<property name="lineSeparator" value="lf" />
</module>
<module name="FileTabCharacter"/>
<module name="RegexpSingleline">
<property name="format" value="\s+$"/>
Expand Down

0 comments on commit e665f9d

Please sign in to comment.