From 896e4fb2da66144e385043888abe2e21c2380dad Mon Sep 17 00:00:00 2001 From: Alexis Hernandez Date: Sun, 26 May 2019 14:26:15 -0600 Subject: [PATCH] server: Add scalafmt --- server/.scalafmt.conf | 17 +++++++++++++++++ server/project/plugins.sbt | 4 +++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 server/.scalafmt.conf diff --git a/server/.scalafmt.conf b/server/.scalafmt.conf new file mode 100644 index 0000000..ecf7012 --- /dev/null +++ b/server/.scalafmt.conf @@ -0,0 +1,17 @@ +version = 2.0.0-RC7 +project.git = true +project.excludeFilters = [ +] + +maxColumn = 120 +docstrings = JavaDoc +assumeStandardLibraryStripMargin = false + +continuationIndent.callSite = 2 +continuationIndent.defnSite = 4 + +align = none + +newlines.alwaysBeforeTopLevelStatements = true + +onTestFailure = "To fix this, run 'sbt scalafmt' from the project directory" diff --git a/server/project/plugins.sbt b/server/project/plugins.sbt index 2c651a0..be354ab 100644 --- a/server/project/plugins.sbt +++ b/server/project/plugins.sbt @@ -4,4 +4,6 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1") addSbtPlugin("com.codacy" % "sbt-codacy-coverage" % "1.3.12") -addSbtPlugin("org.duhemm" % "sbt-errors-summary" % "0.6.0") \ No newline at end of file +addSbtPlugin("org.duhemm" % "sbt-errors-summary" % "0.6.0") + +addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.0")