Browse Source

server: Add scalafmt

develop
Alexis Hernandez 6 years ago
parent
commit
896e4fb2da
  1. 17
      server/.scalafmt.conf
  2. 4
      server/project/plugins.sbt

17
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"

4
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("com.codacy" % "sbt-codacy-coverage" % "1.3.12")
addSbtPlugin("org.duhemm" % "sbt-errors-summary" % "0.6.0") addSbtPlugin("org.duhemm" % "sbt-errors-summary" % "0.6.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.0")

Loading…
Cancel
Save