Skip to content

Commit

Permalink
Add scalastyle rule for "type class"
Browse files Browse the repository at this point in the history
Instead of "typeclass" -- this decision was made in typelevel#441.
  • Loading branch information
ceedubs committed Jun 19, 2016
1 parent d76a033 commit 548e74d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scalastyle-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,10 @@
<check enabled="true" class="org.scalastyle.scalariform.ProcedureDeclarationChecker" level="error"/>
<check enabled="true" class="org.scalastyle.scalariform.RedundantIfChecker" level="error"/>
<check enabled="true" class="org.scalastyle.scalariform.SpaceAfterCommentStartChecker" level="error"/>
<check level="error" class="org.scalastyle.file.RegexChecker" enabled="true" customId="type.class.spacing">
<parameters>
<parameter name="regex"><![CDATA[(?<!@|simulacrum\.)typeclass]]></parameter>
</parameters>
<customMessage><![CDATA[Use 'type class' instead of typeclass (See #441)]]></customMessage>
</check>
</scalastyle>

0 comments on commit 548e74d

Please sign in to comment.