diff options
Diffstat (limited to 'scalding/scalastyle-config.xml')
-rw-r--r-- | scalding/scalastyle-config.xml | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/scalding/scalastyle-config.xml b/scalding/scalastyle-config.xml index e2f58a0..86d8fca 100644 --- a/scalding/scalastyle-config.xml +++ b/scalding/scalastyle-config.xml @@ -6,6 +6,13 @@ <parameter name="maxFileLength"><![CDATA[800]]></parameter> </parameters> </check> +<check enabled="true" class="org.scalastyle.file.IndentationChecker" level="warning"> + <parameters> + <parameter name="tabSize">2</parameter> + <parameter name="methodParamIndentSize">2</parameter> + <parameter name="classParamIndentSize">4</parameter> + </parameters> +</check> <check level="warning" class="org.scalastyle.file.HeaderMatchesChecker" enabled="false"> <parameters> <parameter name="header"><![CDATA[// Copyright (C) 2011-2012 the original author or authors. @@ -50,17 +57,12 @@ </parameters> </check> <check level="warning" class="org.scalastyle.scalariform.EqualsHashCodeChecker" enabled="true"></check> - <check level="warning" class="org.scalastyle.scalariform.IllegalImportsChecker" enabled="true"> - <parameters> - <parameter name="illegalImports"><![CDATA[sun._,java.awt._]]></parameter> - </parameters> - </check> <check level="warning" class="org.scalastyle.scalariform.ParameterNumberChecker" enabled="true"> <parameters> <parameter name="maxParameters"><![CDATA[8]]></parameter> </parameters> </check> - <check level="warning" class="org.scalastyle.scalariform.MagicNumberChecker" enabled="true"> + <check level="warning" class="org.scalastyle.scalariform.MagicNumberChecker" enabled="false"> <parameters> <parameter name="ignore"><![CDATA[-1,0,1,2,3]]></parameter> </parameters> @@ -114,15 +116,23 @@ <check level="warning" class="org.scalastyle.scalariform.PublicMethodsHaveTypeChecker" enabled="true"></check> <check level="warning" class="org.scalastyle.file.NewLineAtEofChecker" enabled="true"></check> <check level="warning" class="org.scalastyle.file.NoNewLineAtEofChecker" enabled="false"></check> - <check class="org.scalastyle.scalariform.BlockImportChecker" level="warning" enabled="true"/> -<check class="org.scalastyle.scalariform.ImportOrderChecker" level="warning" enabled="true"> + <check enabled="true" class="org.scalastyle.scalariform.BlockImportChecker" level="warning"/> + <check enabled="true" class="org.scalastyle.scalariform.ImportOrderChecker" level="warning"> <parameters> <parameter name="groups">java,scala,others</parameter> <parameter name="group.java">javax?\..+</parameter> <parameter name="group.scala">scala\..+</parameter> <parameter name="group.others">.+</parameter> - <parameter name="maxBlankLines">1</parameter> - <parameter name="lexicographic">true</parameter> + </parameters> + </check> +<check level="warning" class="org.scalastyle.scalariform.IllegalImportsChecker" enabled="true"> + <parameters> + <parameter name="illegalImports"><![CDATA[sun._,java.awt._]]></parameter> + </parameters> +</check> +<check level="warning" class="org.scalastyle.scalariform.IllegalImportsChecker" enabled="true"> + <parameters> + <parameter name="illegalImports"><![CDATA[sun._,java.awt._]]></parameter> </parameters> </check> </scalastyle> |