-
-
Notifications
You must be signed in to change notification settings - Fork 134
/
.scalafmt.conf
54 lines (45 loc) · 996 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.3
runner.dialect = Scala213Source3
align.preset = true
assumeStandardLibraryStripMargin = true
danglingParentheses.preset = true
docstrings.style = Asterisk
docstrings.wrap = no
maxColumn = 120
project.git = true
rewrite.rules = [
AvoidInfix,
RedundantParens,
SortModifiers,
PreferCurlyFors
]
rewrite.neverInfix.excludeFilters = [
# better for play-json dsl
and, andKeep, andThen,
# For scalatest
in, should, when, must mustEqual, mustNot, mustBe, "must_==="
]
rewrite.sortModifiers.order = [
"private",
"protected",
"final",
"sealed",
"abstract",
"implicit",
"override",
"lazy"
]
spaces.inImportCurlyBraces = true # more idiomatic to include whitespace in import x.{ yyy }
trailingCommas = preserve
literals.long=Upper
literals.float=Upper
literals.double=Upper
literals.scientific=Upper
fileOverride {
"glob:**/*/src/*/scala-3/**/*.scala" {
runner.dialect = scala3
}
}
project.excludePaths = [
"glob:**/docs/**/code*/*.scala"
]