[FLINK-9140][build] Simplify scalastyle configuration

This closes #5819.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/4742c348
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/4742c348
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/4742c348

Branch: refs/heads/master
Commit: 4742c348889e7ae761c332cbbadce671c374fb1e
Parents: 96cc1d5
Author: Bowen Li <bowenl...@gmail.com>
Authored: Thu Apr 5 00:42:50 2018 -0700
Committer: zentol <ches...@apache.org>
Committed: Wed Apr 11 12:18:11 2018 +0200

----------------------------------------------------------------------
 tools/maven/scalastyle-config.xml | 36 +++++++++++++++++-----------------
 1 file changed, 18 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/4742c348/tools/maven/scalastyle-config.xml
----------------------------------------------------------------------
diff --git a/tools/maven/scalastyle-config.xml 
b/tools/maven/scalastyle-config.xml
index 848b2af..53b1052 100644
--- a/tools/maven/scalastyle-config.xml
+++ b/tools/maven/scalastyle-config.xml
@@ -26,7 +26,7 @@
 
 <scalastyle>
  <name>Scalastyle standard configuration</name>
- <check level="error" class="org.scalastyle.file.FileTabChecker" 
enabled="true"></check>
+ <check level="error" class="org.scalastyle.file.FileTabChecker" 
enabled="true" />
  <!-- <check level="error" class="org.scalastyle.file.FileLengthChecker" 
enabled="true"> -->
  <!--  <parameters> -->
  <!--   <parameter name="maxFileLength"><![CDATA[800]]></parameter> -->
@@ -53,9 +53,9 @@
  */]]></parameter>
   </parameters>
  </check>
- <check level="error" 
class="org.scalastyle.scalariform.SpacesAfterPlusChecker" 
enabled="true"></check>
- <check level="error" class="org.scalastyle.file.WhitespaceEndOfLineChecker" 
enabled="false"></check>
- <check level="error" 
class="org.scalastyle.scalariform.SpacesBeforePlusChecker" 
enabled="true"></check>
+ <check level="error" 
class="org.scalastyle.scalariform.SpacesAfterPlusChecker" enabled="true" />
+ <check level="error" class="org.scalastyle.file.WhitespaceEndOfLineChecker" 
enabled="false" />
+ <check level="error" 
class="org.scalastyle.scalariform.SpacesBeforePlusChecker" enabled="true" />
  <check level="error" class="org.scalastyle.file.FileLineLengthChecker" 
enabled="true">
   <parameters>
    <parameter name="maxLineLength"><![CDATA[100]]></parameter>
@@ -78,7 +78,7 @@
    <parameter name="regex"><![CDATA[^[a-z][A-Za-z]*$]]></parameter>
   </parameters>
  </check>
- <check level="error" class="org.scalastyle.scalariform.EqualsHashCodeChecker" 
enabled="false"></check>
+ <check level="error" class="org.scalastyle.scalariform.EqualsHashCodeChecker" 
enabled="false" />
  <!-- <check level="error" 
class="org.scalastyle.scalariform.IllegalImportsChecker" enabled="true"> -->
  <!--  <parameters> -->
  <!--   <parameter 
name="illegalImports"><![CDATA[sun._,java.awt._]]></parameter> -->
@@ -94,14 +94,14 @@
  <!--   <parameter name="ignore"><![CDATA[-1,0,1,2,3]]></parameter> -->
  <!--  </parameters> -->
  <!-- </check> -->
- <check level="error" 
class="org.scalastyle.scalariform.NoWhitespaceBeforeLeftBracketChecker" 
enabled="false"></check>
- <check level="error" 
class="org.scalastyle.scalariform.NoWhitespaceAfterLeftBracketChecker" 
enabled="false"></check>
- <!-- <check level="error" class="org.scalastyle.scalariform.ReturnChecker" 
enabled="true"></check> -->
- <!-- <check level="error" class="org.scalastyle.scalariform.NullChecker" 
enabled="true"></check> -->
- <!-- <check level="error" class="org.scalastyle.scalariform.NoCloneChecker" 
enabled="true"></check> -->
- <!-- <check level="error" 
class="org.scalastyle.scalariform.NoFinalizeChecker" enabled="true"></check> -->
- <!-- <check level="error" 
class="org.scalastyle.scalariform.CovariantEqualsChecker" 
enabled="true"></check> -->
- <!-- <check level="error" 
class="org.scalastyle.scalariform.StructuralTypeChecker" 
enabled="true"></check> -->
+ <check level="error" 
class="org.scalastyle.scalariform.NoWhitespaceBeforeLeftBracketChecker" 
enabled="false" />
+ <check level="error" 
class="org.scalastyle.scalariform.NoWhitespaceAfterLeftBracketChecker" 
enabled="false" />
+ <!-- <check level="error" class="org.scalastyle.scalariform.ReturnChecker" 
enabled="true" /> -->
+ <!-- <check level="error" class="org.scalastyle.scalariform.NullChecker" 
enabled="true" /> -->
+ <!-- <check level="error" class="org.scalastyle.scalariform.NoCloneChecker" 
enabled="true" /> -->
+ <!-- <check level="error" 
class="org.scalastyle.scalariform.NoFinalizeChecker" enabled="true" /> -->
+ <!-- <check level="error" 
class="org.scalastyle.scalariform.CovariantEqualsChecker" enabled="true" /> -->
+ <!-- <check level="error" 
class="org.scalastyle.scalariform.StructuralTypeChecker" enabled="true" /> -->
  <!-- <check level="error" class="org.scalastyle.file.RegexChecker" 
enabled="true"> -->
  <!--  <parameters> -->
  <!--   <parameter name="regex"><![CDATA[println]]></parameter> -->
@@ -117,8 +117,8 @@
  <!--   <parameter name="maximum"><![CDATA[10]]></parameter> -->
  <!--  </parameters> -->
  <!-- </check> -->
- <check level="error" class="org.scalastyle.scalariform.UppercaseLChecker" 
enabled="true"></check>
- <check level="error" 
class="org.scalastyle.scalariform.SimplifyBooleanExpressionChecker" 
enabled="false"></check>
+ <check level="error" class="org.scalastyle.scalariform.UppercaseLChecker" 
enabled="true" />
+ <check level="error" 
class="org.scalastyle.scalariform.SimplifyBooleanExpressionChecker" 
enabled="false" />
  <check level="error" class="org.scalastyle.scalariform.IfBraceChecker" 
enabled="true">
   <parameters>
    <parameter name="singleLineAllowed"><![CDATA[true]]></parameter>
@@ -140,7 +140,7 @@
  <!--   <parameter name="maxMethods"><![CDATA[30]]></parameter> -->
  <!--  </parameters> -->
  <!-- </check> -->
- <!-- <check level="error" 
class="org.scalastyle.scalariform.PublicMethodsHaveTypeChecker" 
enabled="true"></check> -->
- <check level="error" class="org.scalastyle.file.NewLineAtEofChecker" 
enabled="true"></check>
- <check level="error" class="org.scalastyle.file.NoNewLineAtEofChecker" 
enabled="false"></check>
+ <!-- <check level="error" 
class="org.scalastyle.scalariform.PublicMethodsHaveTypeChecker" enabled="true" 
/> -->
+ <check level="error" class="org.scalastyle.file.NewLineAtEofChecker" 
enabled="true" />
+ <check level="error" class="org.scalastyle.file.NoNewLineAtEofChecker" 
enabled="false" />
 </scalastyle>

Reply via email to