Skip to content
Browse files
[MINOR] Update scalastyle-config.xml messages for import style checks
Adds a few custom messages to the Scala Style configuration.
Short of those, there is no way to determine what the
red squiggly line means in IntelliJ.

Closes #7
  • Loading branch information
ckadner authored and lresende committed Jul 12, 2016
1 parent d6770f8 commit 52f3cb652f241c63d5731cfcf864725b737b5a3f
Showing 1 changed file with 2 additions and 0 deletions.
@@ -218,6 +218,7 @@ This file is divided into 3 sections:
<parameter name="group.3rdParty">(?!org\.apache\.spark\.).*</parameter>
<parameter name="group.spark">org\.apache\.spark\..*</parameter>
<customMessage>Imports should be grouped and ordered: java,scala,3rdParty,spark</customMessage>

<check level="error" class="org.scalastyle.scalariform.DisallowSpaceBeforeTokenChecker" enabled="true">
@@ -270,6 +271,7 @@ This file is divided into 3 sections:

<check level="error" class="org.scalastyle.scalariform.IllegalImportsChecker" enabled="false">
<parameters><parameter name="illegalImports"><![CDATA[sun._,java.awt._]]></parameter></parameters>
<customMessage>Illegal import of sun._ or java.awt._</customMessage>

<!-- We want the opposite of this: NewLineAtEofChecker -->

0 comments on commit 52f3cb6

Please sign in to comment.