diff options
author | Stewart Stewart <stewinsalot@gmail.com> | 2016-10-10 18:46:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-10 18:46:51 -0400 |
commit | b85ed80fe672f420ef789f0fa0c8078ae27d13de (patch) | |
tree | b29117456a1742bf96edc0704469595fafdec7de | |
parent | bf1124d96e63e307472994731594c82d0a9f6021 (diff) | |
parent | 20684d242b098aca03068df4857f6e1929397f73 (diff) | |
download | sbt-settings-b85ed80fe672f420ef789f0fa0c8078ae27d13de.tar.gz sbt-settings-b85ed80fe672f420ef789f0fa0c8078ae27d13de.tar.bz2 sbt-settings-b85ed80fe672f420ef789f0fa0c8078ae27d13de.zip |
Merge pull request #3 from drivergroup/test-scalastyle
run scalastyle as part of tests rather than compilation
-rw-r--r-- | src/main/scala/com.drivergrp.sbt/SbtSettings.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/scala/com.drivergrp.sbt/SbtSettings.scala b/src/main/scala/com.drivergrp.sbt/SbtSettings.scala index 86e07a3..746fb68 100644 --- a/src/main/scala/com.drivergrp.sbt/SbtSettings.scala +++ b/src/main/scala/com.drivergrp.sbt/SbtSettings.scala @@ -65,7 +65,7 @@ object SbtSettings extends AutoPlugin { testExecution in (Test, test) <<= (testExecution in (Test, test)) dependsOn (scalafmtTest in Compile, scalafmtTest in Test)) - private lazy val compileScalastyle = taskKey[Unit]("compileScalastyle") + private lazy val testScalastyle = taskKey[Unit]("testScalastyle") lazy val scalastyleSettings = Seq( resourceGenerators in Compile += Def.task { @@ -189,8 +189,8 @@ object SbtSettings extends AutoPlugin { Seq(styleFile) }.taskValue, scalastyleConfig := file("scalastyle-config.xml"), - compileScalastyle := (scalastyle in Compile).toTask("").value, - (compile in Compile) <<= ((compile in Compile) dependsOn compileScalastyle)) + testScalastyle := (scalastyle in Test).toTask("").value, + (compile in Compile) <<= ((compile in Compile) dependsOn testScalastyle)) lazy val wartRemoverSettings = Seq( wartremoverErrors in (Compile, compile) ++= Warts.allBut( @@ -386,4 +386,4 @@ object SbtSettings extends AutoPlugin { fork in run := true ) -}
\ No newline at end of file +} |