-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.scalafmt.conf
More file actions
45 lines (38 loc) · 837 Bytes
/
.scalafmt.conf
File metadata and controls
45 lines (38 loc) · 837 Bytes
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
version = 3.10.6
# https://alexn.org/blog/2025/10/26/scala-3-no-indent/
runner.dialect = scala213source3
align.preset = none
maxColumn = 100
indent.main = 2
indent.callSite = 2
indent.extendSite = 2
continuationIndent {
callSite = 2
defnSite = 2
extendSite = 2
}
newlines {
source = keep
afterCurlyLambdaParams = preserve
beforeCurlyLambdaParams = multilineWithCaseOnly
topLevelBodyIfMinStatements = []
forceBeforeAssign = def
}
docstrings {
style = "SpaceAsterisk"
removeEmpty = true
oneline = "keep"
wrap = yes
wrapMaxColumn = 80
forceBlankLineBefore = false
}
rewrite.rules = [
AvoidInfix,
Imports,
RedundantBraces,
RedundantParens,
SortModifiers,
]
# https://scalameta.org/scalafmt/docs/configuration.html#imports-expand
rewrite.imports.sort = scalastyle
rewrite.imports.expand = true