forked from scalameta/metals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
38 lines (36 loc) · 958 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
version = "3.7.12"
runner.dialect = scala213
project.git = true
align.preset = none
align.stripMargin = true
docstrings.style = Asterisk
docstrings.wrap = no
assumeStandardLibraryStripMargin = true
binPack.literalsExclude = ["Term.Name"]
newlines.inInterpolation = avoid
trailingCommas = multiple
onTestFailure = """
To fix this problem:
1. run ./bin/scalafmt from the project root directory
2. `git add . && git commit --amend` OR `git commit -am "Run scalafmt"`
"""
project.excludeFilters = [
"test-workspace"
"metals-bench/src/main/resources"
"tests/unit/src/test/resources"
"tests/input/src/main/scala"
]
fileOverride {
"glob:**/sbt-metals/**" {
runner.dialect = scala212source3
},
"glob:**/scala-3*/**" {
runner.dialect = scala3
rewrite.scala3.convertToNewSyntax = yes
rewrite.scala3.removeOptionalBraces = yes
rewrite.scala3.insertEndMarkerMinLines = 15
},
"glob:**/mtags*/**" {
trailingCommas = never
}
}