This project is intended to provide SBT 0.12.0 plugin support for Scalastyle. For more information about Scalastyle, see https://github.com/scalastyle/scalastyle.
add following line to project/plugins.sbt
addSbtPlugin("com.github.aselab" %% "scalastyle-sbt-plugin" % "0.1.0")
resolvers ++= Seq(
"aselab repo" at "http://aselab.github.com/maven/"
)
and, inject plugin settings into project in build.sbt
:
import com.github.aselab.scalastyle._
ScalaStylePlugin.Settings
You can check your code by typing sbt scalastyle
.
The result file is target/scalastyle-result.xml
(CheckStyle compatible format).
ScalaStyle Configuration file is ./scalastyle-config.xml
by default.
To generate default configuration file, by typing sbt scalastyle-generate-config
.