-
Notifications
You must be signed in to change notification settings - Fork 650
Expand file tree
/
Copy path.scalafmt.conf
More file actions
35 lines (30 loc) · 828 Bytes
/
.scalafmt.conf
File metadata and controls
35 lines (30 loc) · 828 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
version = 3.8.5
runner.dialect = scala213source3
fileOverride {
"glob:**/scala-3/**" {
runner.dialect = scala3
}
"glob:**.mill" {
runner.dialect = scala3
}
}
maxColumn = 120
align = most
continuationIndent.defnSite = 2
assumeStandardLibraryStripMargin = true
# TODO eventually enable, but audit handling of @define and @example {{{ (curly brace on same line)
docstrings.style = keep
lineEndings = preserve
includeCurlyBraceInSelectChains = false
danglingParentheses.preset = true
align.tokens."+" = [
{
code = ":"
}
]
newlines.beforeCurlyLambdaParams = never
newlines.forceBeforeMultilineAssign = never
newlines.implicitParamListModifierPrefer = before
newlines.sometimesBeforeColonInMethodReturnType = true
optIn.annotationNewlines = true
rewrite.rules = [SortImports, PreferCurlyFors, AvoidInfix]