-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.scalafmt.conf
45 lines (35 loc) · 989 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
version = "3.7.17"
maxColumn = 120
align.preset = none
assumeStandardLibraryStripMargin = true
importSelectors = singleLine
indentOperator.exemptScope = all
rewrite.redundantBraces.ifElseExpressions = true
rewrite.rules = [RedundantBraces, SortModifiers]
rewrite.scala3.convertToNewSyntax = true
rewrite.scala3.insertEndMarkerMinLines = 15
rewrite.scala3.removeEndMarkerMaxLines = 14
rewrite.scala3.removeOptionalBraces = oldSyntaxToo
newlines.afterCurlyLambdaParams = squash
newlines.inInterpolation = oneLine
newlines.selectChains = unfold
newlines.source = fold
newlines.topLevelStatementBlankLines = [{blanks = 1}]
runner.dialect = scala3
runner.optimizer.forceConfigStyleMinArgCount = 3
runner.optimizer.forceConfigStyleOnOffset = 120
project.git = true
project.includePaths = [
"glob:**.scala"
"glob:**.sbt"
"glob:**.sc"
"glob:**.md"
]
fileOverride {
"glob:**/project/**" {
runner.dialect = scala212
}
"glob:**/*.sbt" {
runner.dialect = scala212
}
}