-
Notifications
You must be signed in to change notification settings - Fork 66
/
.scalafmt.conf
36 lines (34 loc) · 1.09 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
version = 3.8.3
project.layout = StandardConvention
runner.dialect = scala3
maxColumn = 120
style = defaultWithAlign
optIn.breaksInsideChains = true
docstrings.blankFirstLine = yes
rewrite.scala3.convertToNewSyntax = true
rewrite.scala3.removeOptionalBraces = yes
// Rewrite import _ to *
runner.dialectOverride.allowStarWildcardImport = true
// Disable rewrite import => to 'as'
runner.dialectOverride.allowAsForImportRename = false
// Disable vararg rewrite to *
runner.dialectOverride.allowPostfixStarVarargSplices = false
// Disable rewrite to if ... then, for ... do
runner.dialectOverride.allowSignificantIndentation = false
// Disable rewrite Type wildcard [_] -> [?]
runner.dialectOverride.allowQuestionMarkAsTypeWildcard = false
fileOverride {
"glob:**/scala/**" {
runner.dialect = scala213source3
}
"glob:**/scala-2/**" {
runner.dialect = scala213source3
}
"glob:**/scala-3/**" {
runner.dialect = scala3
}
"glob:**/scala-3/wvlet/log/LoggerBase.scala" {
// optional brace didn't work for code with inline/macro methods
rewrite.scala3.removeOptionalBraces = no
}
}