-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.scalafmt.conf
More file actions
32 lines (29 loc) · 851 Bytes
/
.scalafmt.conf
File metadata and controls
32 lines (29 loc) · 851 Bytes
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
# PoolQ .scalafmt configuration
version=3.8.3
runner.dialect = scala3
fileOverride {
"glob:**.sbt" {
runner.dialect = sbt1
}
}
# start with basic IntelliJ configuration
preset = IntelliJ
# customizations
align.preset=none
importSelectors = singleLine
maxColumn = 120
continuationIndent.defnSite = 4
newlines.afterCurlyLambdaParams = squash
newlines.topLevelStatementBlankLines = [
{ blanks = 1 }
]
project.git = true
# rewrite rules
rewrite.rules = [AvoidInfix, RedundantBraces, RedundantParens, SortModifiers]
rewrite.redundantBraces.generalExpressions = false
rewrite.redundantBraces.includeUnitMethods = false
rewrite.redundantBraces.maxBreaks = 16
rewrite.redundantBraces.stringInterpolation = true
rewrite.scala3.convertToNewSyntax = true
rewrite.scala3.removeOptionalBraces = oldSyntaxToo
rewrite.scala3.insertEndMarkerMinLines = 8