Skip to content

Commit

Permalink
= build: enable linter compiler plugin to find common Scala errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudolph committed Jul 2, 2013
1 parent ea3e689 commit bc7bbb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions project/BuildSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ object BuildSettings {
"-target:jvm-1.6",
"-language:_",
"-Xlog-reflective-calls"
)
),
addCompilerPlugin("com.foursquare.lint" %% "linter" % "0.1-SNAPSHOT")
)

lazy val sprayModuleSettings =
Expand Down Expand Up @@ -121,4 +122,4 @@ object BuildSettings {
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentClassDeclaration, true)

}
}
3 changes: 2 additions & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import sbt._
object Dependencies {

val resolutionRepos = Seq(
"spray repo" at "http://repo.spray.io/"
"spray repo" at "http://repo.spray.io/",
"linter" at "http://hairyfotr.github.io/linteRepo/releases"
)

def compile (deps: ModuleID*): Seq[ModuleID] = deps map (_ % "compile")
Expand Down

0 comments on commit bc7bbb7

Please sign in to comment.