-
Notifications
You must be signed in to change notification settings - Fork 5
/
.scalafmt.conf
59 lines (57 loc) · 1.12 KB
/
.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
52
53
54
55
56
57
58
59
# https://scalameta.org/scalafmt/docs/configuration.html
version = 3.8.3
runner {
dialect = scala213
}
# keep this in sync with scalastyle rule
maxColumn = 120
project.git = true
assumeStandardLibraryStripMargin = true
importSelectors = singleLine
lineEndings = unix
project.excludePaths = [
"glob:**/scala-3/**.scala"
]
align {
preset = none
tokens = []
stripMargin = true
}
newlines {
beforeTypeBounds = keep
sometimesBeforeColonInMethodReturnType = false
implicitParamListModifierPrefer = before
beforeMultiline = fold
alwaysBeforeElseAfterCurlyIf = false
beforeCurlyLambdaParams = never
afterCurlyLambdaParams = never
avoidForSimpleOverflow = [punct]
}
indent {
main = 2
defnSite = 2
}
binPack {
parentConstructors = Never
}
docstrings {
style = SpaceAsterisk
blankFirstLine = yes
oneline = unfold
wrap = no
}
optIn {
breakChainOnFirstMethodDot = false
}
verticalMultiline {
newlineAfterOpenParen = true
}
rewrite {
trailingCommas {
style = never
}
imports {
sort = scalastyle
}
rules = [AvoidInfix, RedundantBraces, RedundantParens, SortModifiers, PreferCurlyFors, Imports]
}