-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scalafmt.conf
51 lines (43 loc) · 918 Bytes
/
.scalafmt.conf
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version = 3.7.15
runner.dialect = Scala213Source3
maxColumn = 120
rewrite.rules = [
Imports
RedundantBraces
RedundantParens
PreferCurlyFors
]
align.openParenCallSite = false
align.openParenDefnSite = false
danglingParentheses.callSite = false
danglingParentheses.defnSite = false
# don't align arrows in match statements
align.preset = none
rewrite {
imports.sort = scalastyle
redundantBraces {
generalExpressions = false
defnBodies = none
stringInterpolation = true
}
trailingCommas.style = always
}
docstrings {
style = Asterisk
blankFirstLine = true
removeEmpty = true
wrap = false
}
fileOverride {
# sbt related files - *.sbt & project/*.scala
"glob:**/*.sbt" {
runner.dialect = sbt1
# align libraryDependencies
align.preset = most
}
"glob:**/project/*.scala" {
runner.dialect = sbt1
# align libraryDependencies
align.preset = more
}
}