forked from zio/zio-quill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
31 lines (27 loc) · 1008 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
version = "3.8.3"
maxColumn = 240
align.preset = most
align.multiline = false
continuationIndent.defnSite = 2
assumeStandardLibraryStripMargin = true
docstrings.style = Asterisk
docstrings.wrapMaxColumn = 80
lineEndings = preserve
danglingParentheses.preset = true
optIn.annotationNewlines = true
newlines.alwaysBeforeMultilineDef = false
runner.dialect = scala213
rewrite.rules = [RedundantBraces]
# If I've inserted extra newlines I know what I'm doing, don't wrap them back.
newlines.source = keep
# Don't change braces in one-liners to parens e.g. don't change this: `test("foo") { assertEquals(x,y) }`
# to this `test("foo")(assertEquals(x,y))`. The `rewrite.rules = [RedundantBraces]` will introduce this behavior
# unless you add the below option.
rewrite.redundantBraces.parensForOneLineApply = false
project.excludePaths = ["glob:**/scalafix/input/**", "glob:**/scalafix/output/**"]
rewrite.redundantBraces.generalExpressions = false
rewriteTokens = {
"⇒": "=>"
"→": "->"
"←": "<-"
}