[ofbiz-framework] branch trunk updated: Improved: Set checkstyle to use LF line endings

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-framework] branch trunk updated: Improved: Set checkstyle to use LF line endings

jleroux@apache.org
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new e665f9d  Improved: Set checkstyle to use LF line endings
     new 5b8c899  Merge pull request #36 from danwatford/ofbiz-11428-checkstyle-line-endings
e665f9d is described below

commit e665f9dc68a4cd494c71e61134b3833d27de47ef
Author: Daniel Watford <[hidden email]>
AuthorDate: Fri Feb 28 10:37:02 2020 +0000

    Improved: Set checkstyle to use LF line endings
   
    (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.
---
 config/checkstyle/checkstyle.xml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml
index 426c5c3..1cf0bf7 100644
--- a/config/checkstyle/checkstyle.xml
+++ b/config/checkstyle/checkstyle.xml
@@ -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+$"/>