Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added StructuralTypeChecker to scalastyle configuration

  • Loading branch information...
commit 7b4a6a118c254b0eb8796b55271d7d5011641263 1 parent cbbd753
@matthewfarwell authored
Showing with 11 additions and 2 deletions.
  1. +11 −2 lib/scalastyle_config.xml
View
13 lib/scalastyle_config.xml
@@ -34,8 +34,16 @@
<parameter name="tabSize"><![CDATA[4]]></parameter>
</parameters>
</check>
- <check level="warning" class="org.scalastyle.scalariform.ClassNamesChecker" enabled="true"></check>
- <check level="warning" class="org.scalastyle.scalariform.ObjectNamesChecker" enabled="true"></check>
+ <check level="warning" class="org.scalastyle.scalariform.ClassNamesChecker" enabled="true">
+ <parameters>
+ <parameter name="regex"><![CDATA[[A-Z][A-Za-z]*]]></parameter>
+ </parameters>
+ </check>
+ <check level="warning" class="org.scalastyle.scalariform.ObjectNamesChecker" enabled="true">
+ <parameters>
+ <parameter name="regex"><![CDATA[[A-Z][A-Za-z]*]]></parameter>
+ </parameters>
+ </check>
<check level="warning" class="org.scalastyle.scalariform.EqualsHashCodeChecker" enabled="true"></check>
<check level="warning" class="org.scalastyle.scalariform.IllegalImportsChecker" enabled="true">
<parameters>
@@ -59,4 +67,5 @@
<check level="warning" class="org.scalastyle.scalariform.NoCloneChecker" enabled="true"></check>
<check level="warning" class="org.scalastyle.scalariform.NoFinalizeChecker" enabled="true"></check>
<check level="warning" class="org.scalastyle.scalariform.CovariantEqualsChecker" enabled="true"></check>
+ <check level="warning" class="org.scalastyle.scalariform.StructuralTypeChecker" enabled="true"></check>
</scalastyle>
Please sign in to comment.
Something went wrong with that request. Please try again.