Fix files with windows line endings + Add checkstyle rule to catch this issue
Change-Id: Ic1905f2121c5c2ab66259f7f531c1e36fe58e9d4
diff --git a/tools/build/conf/src/main/resources/onos/checkstyle.xml b/tools/build/conf/src/main/resources/onos/checkstyle.xml
index 0a9772f..9765196 100644
--- a/tools/build/conf/src/main/resources/onos/checkstyle.xml
+++ b/tools/build/conf/src/main/resources/onos/checkstyle.xml
@@ -94,6 +94,12 @@
<property name="message" value="Line has trailing spaces."/>
</module>
+ <module name="RegexpMultiline">
+ <property name="format" value="\r\n"/>
+ <property name="maximum" value="0"/>
+ <property name="message" value="Line has windows line endings."/>
+ </module>
+
<!-- Checks for Headers -->
<!-- See http://checkstyle.sf.net/config_header.html -->
<!-- <module name="Header"> -->