Skip to content

a-ono/scalastyle-sbt-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scalastyle-sbt-plugin

This project is intended to provide SBT 0.11.x plugin support for Scalastyle. For more information about Scalastyle, see https://github.com/scalastyle/scalastyle.

Setup

add following line to project/plugins.sbt

  addSbtPlugin("com.github.aselab" %% "scalastyle-sbt-plugin" % "0.1.0-SNAPSHOT")

  resolvers ++= Seq(
    "aselab repo" at "http://aselab.github.com/maven/",
    "Sonatype Nexus Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
  )

and, inject plugin settings into project in build.sbt:

  import com.github.aselab.scalastyle._

  ScalaStylePlugin.Settings

Usage

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.

About

ScalaStyle for sbt plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 96.1%
  • Shell 2.8%
  • JavaScript 1.1%