-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.scalafmt.conf
More file actions
43 lines (40 loc) · 862 Bytes
/
Copy path.scalafmt.conf
File metadata and controls
43 lines (40 loc) · 862 Bytes
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
// https://github.com/scalameta/scalafmt
// https://scalameta.org/scalafmt/docs/configuration.html
version = 3.8.2
runner.dialect = scala213
maxColumn = 200
trailingCommas = preserve
newlines {
source = keep
// don't squash lambda for onle liners
afterCurlyLambdaParams = keep
}
// case class and def multiline definition: 2 spaces instead of 4
continuationIndent.defnSite = 2
align {
// better indentation inside for
preset = most
// case class declaration
openParenDefnSite = false
tokens = ["%", "%%", "=>", "->", "<-", "//"]
}
// don't touch files don't belong to git
project.git = true
// don't touch my scaladoc
docstrings {
wrap = no
}
rewrite {
rules = [
RedundantBraces
RedundantParens
ExpandImportSelectors
AsciiSortImports
PreferCurlyFors
]
}
rewriteTokens {
"⇒" = "=>"
"→" = "->"
"←" = "<-"
}