-
Notifications
You must be signed in to change notification settings - Fork 67
/
.scalafmt.conf
48 lines (36 loc) · 1.12 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
37
38
39
40
41
42
43
44
45
46
47
48
# This file is partially adapted from github/alejandrohdezma/sbt-scalafmt-defaults at
# https://github.com/alejandrohdezma/sbt-scalafmt-defaults/blob/main/.scalafmt.conf
# Some changes have been made against the original file based on the scalafmt doc.
version = "3.7.17"
runner.dialect = scala213
preset = default
maxColumn = 120
indent.defnSite = 2
indent.extendSite = 2
newlines.avoidForSimpleOverflow=[slc, tooLong]
assumeStandardLibraryStripMargin = true
align.stripMargin = true
align.preset = some
align.multiline = false
binPack.literalsIncludeSimpleExpr = true
binPack.literalsExclude = [ "Term.Name" ]
docstrings.style = keep
rewrite.rules = [
AvoidInfix,
RedundantParens,
SortModifiers,
PreferCurlyFors,
Imports
]
rewrite.redundantBraces.methodBodies = false
rewrite.redundantBraces.stringInterpolation = false
rewrite.imports.sort = scalastyle
rewrite.trailingCommas.style = multiple
rewriteTokens = {
"⇒": "=>"
"→": "->"
"←": "<-"
}
includeCurlyBraceInSelectChains = false
project.includePaths = ["glob:**.scala", "glob:**.sbt", "glob:**.sc", "glob:**.md"]
project.excludePaths = ["glob:**metals.sbt"]