aboutsummaryrefslogtreecommitdiff
path: root/.scalafmt.conf
blob: 8a5d14f095000e0ffc5031cbd0f40ea4bb1bc757 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# scalafmt sbt plugin config
# refer to https://olafurpg.github.io/scalafmt/#Configuration for properties

project.git = true

style = defaultWithAlign
maxColumn = 120

docstrings = ScalaDoc

continuationIndent.callSite = 2
continuationIndent.defnSite = 8

rewriteTokens: {
  "⇒" = "=>"
  "←" = "<-"
}
danglingParentheses = false
align.arrowEnumeratorGenerator = true
align.openParenCallSite = true
spaces.afterTripleEquals = true
spaces.inImportCurlyBraces = false
newlines.alwaysBeforeCurlyBraceLambdaParams = false
newlines.sometimesBeforeColonInMethodReturnType = false
binPack.parentConstructors = true
assumeStandardLibraryStripMargin = true

# align.openParenCallSite = <value>
# align.openParenDefnSite = <value>