Skip to content

Commit 214135a

Browse files
committed
Review feedback.
1 parent 5eba88c commit 214135a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

project/project/SparkPluginBuild.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
import sbt._
1919
import sbt.Keys._
2020

21+
/**
22+
* This plugin project is there to define new scala style rules for spark. This is
23+
* a plugin project so that this gets compiled first and is put on the classpath and
24+
* becomes available for scalastyle sbt plugin.
25+
*/
2126
object SparkPluginDef extends Build {
2227
lazy val root = Project("plugins", file(".")) dependsOn(sparkStyle)
2328
lazy val sparkStyle = Project("spark-style", file("spark-style"), settings = styleSettings)

project/spark-style/src/main/scala/org/apache/spark/scalastyle/SparkSpaceAfterCommentStyleCheck.scala

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,10 @@
1919
package org.apache.spark.scalastyle
2020

2121
import java.util.regex.Pattern
22-
import org.scalastyle.PositionError
23-
import org.scalastyle.ScalariformChecker
24-
import org.scalastyle.ScalastyleError
25-
import scalariform.lexer.MultiLineComment
26-
import scalariform.lexer.ScalaDocComment
27-
import scalariform.lexer.SingleLineComment
22+
23+
import org.scalastyle.{PositionError, ScalariformChecker, ScalastyleError}
24+
import scalariform.lexer.{MultiLineComment, ScalaDocComment, SingleLineComment, Token}
2825
import scalariform.parser.CompilationUnit
29-
import scalariform.lexer.Token
3026

3127
class SparkSpaceAfterCommentStartChecker extends ScalariformChecker {
3228
val errorKey: String = "insert.a.single.space.after.comment.start"

0 commit comments

Comments
 (0)