Skip to content

Commit 6791512

Browse files
committed
Fix NewlineAtEndOfFile check from CheckStyle on Windows.
See for details: - yegor256/qulice#116 - yegor256/qulice@e1f047e#diff-0ac1133cfe7780870854ffd4c3f1d582R51 No functional changes.
1 parent e15abf3 commit 6791512

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/main/config/checkstyle.xml

+5
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@
4747
<!-- See http://checkstyle.sourceforge.net/config_misc.html#NewlineAtEndOfFile -->
4848
<module name="NewlineAtEndOfFile">
4949
<property name="severity" value="warning"/>
50+
<!--
51+
Explicitly specify line separator that matches separator of the files.
52+
We don't want to use a system-dependent separator because it won't work on Windows.
53+
-->
54+
<property name="lineSeparator" value="lf"/>
5055
</module>
5156

5257
<!-- Checks that property files contain the same keys. -->

0 commit comments

Comments
 (0)