-
Notifications
You must be signed in to change notification settings - Fork 43
/
.scalafmt.conf
48 lines (48 loc) · 950 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
version = 3.8.3
runner.dialect = scala213
project {
git = true
excludeFilters = [
plugin/src/sbt-test
]
layout = StandardConvention
}
newlines {
avoidForSimpleOverflow = [punct, slc, tooLong]
ignoreInSyntax = false
source = fold
}
rewrite {
rules = [
AvoidInfix,
Imports,
RedundantBraces,
RedundantParens,
SortModifiers
]
imports {
expand = true
sort = ascii
groups = [
["java.?\\..*"],
["sbt\\..*"],
["scala\\.meta\\..*"],
["scala\\..*"],
["org\\.scalafmt\\..*", "org\\.scalameta\\..*"],
["org\\..*"],
["com\\..*"],
]
}
redundantBraces {
ifElseExpressions = true
stringInterpolation = true
}
sortModifiers.preset = styleGuide
trailingCommas.style = "always"
}
align {
preset = none
stripMargin = true
}
assumeStandardLibraryStripMargin = true
onTestFailure = "To fix this, run ./bin/scalafmt from the project root directory"