-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scalafmt.conf
57 lines (57 loc) · 1.3 KB
/
.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
55
56
57
align = most
align.openParenCallSite = false
align.openParenDefnSite = false
align.tokens = [
{ code = "extends", owner = "Defn.(Class|Trait|Object)" }
{ code = "//", owner = ".*" }
{ code = "{", owner = "Template" }
{ code = "}", owner = "Template" }
{ code = "%", owner = "Term.ApplyInfix" }
{ code = "=>", owner = "Case" }
{ code = "%%",owner = "Term.ApplyInfix" }
{ code = "%%%",owner = "Term.ApplyInfix" }
{ code = "<-", owner = "Enumerator.Generator" }
{ code = "->", owner = "Term.ApplyInfix" }
{ code = "=", owner = "(Enumerator.Val|Defn.(Va(l|r)|Def|Type))" }
]
continuationIndent.defnSite = 4
docstrings.style = Asterisk
encoding = UTF-8
importSelectors = singleLine
maxColumn = 120
newlines.beforeTypeBounds = unfold
newlines.avoidForSimpleOverflow = [tooLong, punct, slc]
optIn.configStyleArguments = true
project.git = true
rewrite.rules = [
PreferCurlyFors
Imports,
RedundantBraces
RedundantParens
SortModifiers
]
rewrite.imports.expand = true
rewrite.imports.sort = ascii
rewrite.imports.groups = [
["javax?..*", "scala..*"]
[".*"]
]
rewrite.sortModifiers.order = [
implicit
final
sealed
abstract
override
private
protected
lazy
open
transparent
inline
infix
opaque
]
runner.dialect = "scala3"
style = IntelliJ
trailingCommas = preserve
version = 3.7.14