Skip to content

Commit

Permalink
server: Add scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexITC committed May 26, 2019
1 parent e1a8ecf commit 896e4fb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
17 changes: 17 additions & 0 deletions server/.scalafmt.conf
Original file line number Diff line number Diff line change
@@ -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 changes: 3 additions & 1 deletion server/project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
addSbtPlugin("org.duhemm" % "sbt-errors-summary" % "0.6.0")

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.0")

0 comments on commit 896e4fb

Please sign in to comment.