Skip to content

Commit

Permalink
Add auto-formatting early
Browse files Browse the repository at this point in the history
  • Loading branch information
dszeto committed May 15, 2014
1 parent bf4f1f0 commit 8769182
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import scalariform.formatter.preferences._

name := "pio"

version in ThisBuild := "0.8.0-SNAPSHOT"
Expand All @@ -13,7 +15,12 @@ scalacOptions in (ThisBuild, Test) ++= Seq("-Yrangepos")
javacOptions in ThisBuild ++= Seq("-source", "1.6", "-target", "1.6",
"-Xlint:deprecation", "-Xlint:unchecked")

def sharedSettings = scalariformSettings ++ Seq(
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentClassDeclaration, true))

lazy val root = project in file(".") aggregate(
core)

lazy val core = project in file("core")
lazy val core = project in file("core") settings(sharedSettings: _*)
2 changes: 1 addition & 1 deletion core/src/main/scala/deploy/worker/Worker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ object Worker {
}

class Worker(clusterClient: ActorRef, workExecutorProps: Props, registerInterval: FiniteDuration)
extends Actor with ActorLogging {
extends Actor with ActorLogging {
import Worker._
import MasterWorkerProtocol._

Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.3.0")

0 comments on commit 8769182

Please sign in to comment.