-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy path.scalafmt.conf
More file actions
40 lines (29 loc) · 1.07 KB
/
.scalafmt.conf
File metadata and controls
40 lines (29 loc) · 1.07 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
version = "3.10.3"
align.preset = none
align.tokens = [{
code = "<-"
owners = [{
regex = "Enumerator.Generator"
}]
}]
runner.dialect = scala3
maxColumn = 120
docstrings.wrapMaxColumn = 80
docstrings.style = AsteriskSpace
docstrings.wrap = "keep"
rewrite.trailingCommas.style = "keep"
rewrite.scala3.endMarker.spanIs = "blankgaps" # when no blanks are used, drop the end marker
rewrite.scala3.endMarker.removeMaxSpan = 1 # maximum number of blank gaps to allow
rewrite.scala3.convertToNewSyntax = true # switch to new scala 3 syntax
rewrite.rules = [Imports]
rewrite.imports.sort = scalastyle
rewrite.imports.groups = [["java\\..*"], ["scala\\..*"], ["dotty\\..*"]]
# These options do not take into account blank gaps, so they are disabled by default
# rewrite.scala3.removeOptionalBraces.enabled = true
# rewrite.scala3.removeOptionalBraces.fewerBracesMinSpan = 1
# rewrite.scala3.removeOptionalBraces.fewerBracesMaxSpan = 1
newlines.source = keep
newlines.implicitParamListModifierPrefer = before
project.includePaths = [
"glob:**/presentation-compiler/**/*.scala",
]