Repository navigation
Expand file tree
/
Copy path.scalafmt.conf
More file actions
117 lines (99 loc) · 2.7 KB
/
Copy path.scalafmt.conf
File metadata and controls
117 lines (99 loc) · 2.7 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version = "3.11.5"
runner.dialect = scala3
style = default
project.excludeFilters = [
".idea/.*"
"target/.*"
"project/target/.*"
"dist/.*"
".git/.*"
# Generated by tools/shim-gen; GenerateSpec compares it byte for byte.
"modules/renderer-apple/src/main/scala/thicket/renderer/apple/Shim.scala"
"modules/http-apple/src/main/scala/thicket/http/apple/HttpShim.scala"
"modules/device-apple/src/main/scala/thicket/device/apple/DeviceShim.scala"
"modules/motion-ios/src/main/scala/thicket/motion/ios/MotionShim.scala"
"modules/pickers-apple/src/main/scala/thicket/pickers/apple/PickersShim.scala"
"modules/camera-apple/src/main/scala/thicket/camera/apple/CameraShim.scala"
"modules/camera-preview-apple/src/main/scala/thicket/camera/preview/apple/PreviewShim.scala"
]
maxColumn = 120
continuationIndent {
callSite = 2
defnSite = 2
}
assumeStandardLibraryStripMargin = false
docstrings.style = SpaceAsterisk
align = none
align {
openParenCallSite = false
openParenDefnSite = false
arrowEnumeratorGenerator = false
tokens = [
{code = "=>", owner = Case}
{code = "%", owner = "Term.ApplyInfix"}
{code = "%%", owner = "Term.ApplyInfix"}
// {code = "=", owner = "(Enumerator.Val|Defn.(Va(l|r)|Def|Type))"}
{code = "=", owner = Infix}
{code = ":=", owner = Infix}
{code = "<-", owner = "Enumerator.Generator"}
{code = "->", owner = "Term.ApplyInfix"}
":"
]
}
trailingCommas = never
spaces {
afterKeywordBeforeParen = true
}
includeCurlyBraceInSelectChains = true
danglingParentheses.preset = true
danglingParentheses.exclude = []
verticalMultiline {
atDefnSite = true
arityThreshold = 2
newlineAfterOpenParen = true
}
newlines {
alwaysBeforeMultilineDef = true
topLevelBodyIfMinStatements = [before,after]
topLevelBodyMinStatements = 1
avoidForSimpleOverflow=[slc, tooLong]
sometimesBeforeColonInMethodReturnType = true
alwaysBeforeElseAfterCurlyIf = false
beforeCurlyLambdaParams = false
penalizeSingleSelectMultiArgList = false
afterCurlyLambda = never
}
optIn {
breakChainOnFirstMethodDot = true
configStyleArguments = true
breaksInsideChains = true
annotationNewlines = true
}
binPack {
literalsMinArgCount = 1
parentConstructors = true
literalArgumentLists = true
}
runner.optimizer {
forceConfigStyleOnOffset = 100
forceConfigStyleMinArgCount = 2
}
rewrite {
rules = [
RedundantBraces
RedundantParens
SortModifiers
PreferCurlyFors
AsciiSortImports
]
redundantBraces {
stringInterpolation = true
methodBodies = false
includeUnitMethods = false
maxLines = 1
}
sortModifiers.order = [
"implicit", "lazy", "final", "sealed",
"override", "private", "protected", "abstract"
]
}