-
Notifications
You must be signed in to change notification settings - Fork 17
/
.scalafmt.conf
54 lines (49 loc) · 963 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
52
53
54
version=3.8.4-RC4
assumeStandardLibraryStripMargin = true
align.preset = none
align.stripMargin = true
project.layout = StandardConvention
project.git = true
runner.dialect = scala213
fileOverride {
"glob:**/scala-3*/**" {
runner.dialect = scala3
}
}
optIn.selfAnnotationNewline = false
newlines {
inInterpolation = avoid
avoidForSimpleOverflow = all
ignoreInSyntax = false
source = fold
}
rewrite {
rules = [
AvoidInfix,
Imports,
RedundantBraces,
RedundantParens,
SortModifiers,
]
imports {
expand = true
sort = ascii
groups = [
["metaconfig\\..*"],
["sbt\\..*"],
["java.?\\..*"],
["scala\\..*"],
["org\\..*"],
["com\\..*"],
]
}
redundantBraces {
preset = all
}
redundantParens {
preset = all
}
sortModifiers.preset = styleGuide
trailingCommas.style = "always"
}
onTestFailure = "To fix this, run ./scalafmt from the project root directory"