mnemonic-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject [2/6] incubator-mnemonic git commit: MNEMONIC-100: Use checkstyle to ensure Unix-style end of line
Date Fri, 26 Aug 2016 16:30:41 GMT
MNEMONIC-100: Use checkstyle to ensure Unix-style end of line


Project: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/commit/aea44075
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/tree/aea44075
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/diff/aea44075

Branch: refs/heads/master
Commit: aea4407564702e87b2ae914b0be41dbbf7ce8ac1
Parents: 29e36cd
Author: Wei He <hevei.ho@gmail.com>
Authored: Fri Aug 26 04:31:58 2016 +0000
Committer: Wei He <hevei.ho@gmail.com>
Committed: Fri Aug 26 04:31:58 2016 +0000

----------------------------------------------------------------------
 build-tools/mnemonic-checkstyle.xml | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/aea44075/build-tools/mnemonic-checkstyle.xml
----------------------------------------------------------------------
diff --git a/build-tools/mnemonic-checkstyle.xml b/build-tools/mnemonic-checkstyle.xml
index e6b40ab..969f302 100644
--- a/build-tools/mnemonic-checkstyle.xml
+++ b/build-tools/mnemonic-checkstyle.xml
@@ -31,6 +31,14 @@
 
     <module name="FileLength"/>
 
+    <!-- All source files should end with a unix-style end of line. -->
+    <module name="NewlineAtEndOfFile">
+        <!--
+             Use unix style newlines. When set, the checker ensures the last byte in the
file is \n.
+        -->
+        <property name="lineSeparator" value="lf"/>
+    </module>
+
     <!-- Following interprets the header file as regular expressions. -->
     <!-- <module name="RegexpHeader"/>                                -->
 


Mime
View raw message