-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
46 lines (37 loc) · 993 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
39
40
41
42
43
44
45
46
version = 3.5.8
runner.dialect = scala3
maxColumn = 120
includeCurlyBraceInSelectChains = false
# Newlines
newlines.alwaysBeforeElseAfterCurlyIf = false
newlines.beforeCurlyLambdaParams = never
# Docstring
docstrings.style = Asterisk
docstrings.wrap = no
# Project
project.git = true
project.excludeFilters = ["build/"]
# Indent
indent.main = 2
# Alignment
align.openParenCallSite = false
align.preset = none
align.openParenDefnSite = false
# Rewrite
rewrite.scala3.convertToNewSyntax = true
rewrite.scala3.removeOptionalBraces = yes
rewrite.rules = [SortModifiers, PreferCurlyFors, Imports, RedundantBraces]
rewrite.redundantBraces.stringInterpolation = true
rewrite.imports.sort = scalastyle
rewrite.imports.groups = [
["javax?\\..*", "scala\\..*"],
[".*"],
["dev.atedeg\\..*"]
]
rewrite.sortModifiers.order = [
"implicit", "private", "sealed", "abstract",
"override", "final", "protected", "lazy"
]
# Space
spaces.inImportCurlyBraces = true
trailingCommas = always