You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bahir.apache.org by lr...@apache.org on 2016/07/12 00:22:11 UTC

bahir git commit: [MINOR] Update scalastyle-config.xml messages for import style checks

Repository: bahir
Updated Branches:
  refs/heads/master d6770f833 -> 52f3cb652


[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


Project: http://git-wip-us.apache.org/repos/asf/bahir/repo
Commit: http://git-wip-us.apache.org/repos/asf/bahir/commit/52f3cb65
Tree: http://git-wip-us.apache.org/repos/asf/bahir/tree/52f3cb65
Diff: http://git-wip-us.apache.org/repos/asf/bahir/diff/52f3cb65

Branch: refs/heads/master
Commit: 52f3cb652f241c63d5731cfcf864725b737b5a3f
Parents: d6770f8
Author: Christian Kadner <ck...@users.noreply.github.com>
Authored: Wed Jul 6 23:55:12 2016 -0700
Committer: Luciano Resende <lr...@apache.org>
Committed: Mon Jul 11 17:22:07 2016 -0700

----------------------------------------------------------------------
 scalastyle-config.xml | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bahir/blob/52f3cb65/scalastyle-config.xml
----------------------------------------------------------------------
diff --git a/scalastyle-config.xml b/scalastyle-config.xml
index 270104f..1db5977 100644
--- a/scalastyle-config.xml
+++ b/scalastyle-config.xml
@@ -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>
     </parameters>
+    <customMessage>Imports should be grouped and ordered: java,scala,3rdParty,spark</customMessage>
   </check>
 
   <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>
   </check>
 
   <!-- We want the opposite of this: NewLineAtEofChecker -->