You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mnemonic.apache.org by ga...@apache.org on 2016/08/26 16:30:41 UTC
[2/6] incubator-mnemonic git commit: MNEMONIC-100: Use checkstyle to
ensure Unix-style end of line
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 <he...@gmail.com>
Authored: Fri Aug 26 04:31:58 2016 +0000
Committer: Wei He <he...@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"/> -->