-
Notifications
You must be signed in to change notification settings - Fork 3
/
.scalafmt.conf
32 lines (27 loc) · 874 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
version = 3.8.3
project.git = true
maxColumn = 120
runner.dialect = Scala213Source3
fileOverride {
"glob:**/src/main/scala-3/**" {
runner.dialect = scala3
runner.dialectOverride.allowSignificantIndentation = false
runner.dialectOverride.allowQuietSyntax = true
}
"glob:**/src/test/scala-3/**" {
runner.dialect = scala3
runner.dialectOverride.allowSignificantIndentation = false
runner.dialectOverride.allowQuietSyntax = true
}
}
align.preset = some
rewrite.rules = [Imports, RedundantBraces, SortModifiers]
rewrite.imports.sort = scalastyle
rewrite.redundantBraces.stringInterpolation = true
rewrite.scala3.convertToNewSyntax = true
rewrite.scala3.removeOptionalBraces = false
docstrings.blankFirstLine = no
docstrings.style = SpaceAsterisk
docstrings.wrap = yes
newlines.sometimesBeforeColonInMethodReturnType = true
lineEndings = unix