-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
49 lines (39 loc) · 995 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
47
48
49
#
# .scalafmt.conf
# Copyright (C) 2021 Giacomo Cavalieri, Nicolò Di Domenico Nicolas Farabegoli, Linda Vitali
#
# Distributed under terms of the MIT license.
#
version = 3.8.1
runner.dialect = scala212
maxColumn = 120
includeCurlyBraceInSelectChains = false
# Newlines
newlines.penalizeSingleSelectMultiArgList = false
newlines.topLevelStatementBlankLines = [
{
blanks { before = 1 }
}
]
# Docstring
docstrings.style = Asterisk
docstrings.wrap = yes
# Project
project.git = true
project.excludeFilters = ["build/"]
# Indent
indent.main = 2
# Alignment
align.openParenCallSite = false
align.preset = none
align.openParenDefnSite = false
# Rewrite
rewrite.rules = [SortModifiers, PreferCurlyFors, Imports]
rewrite.imports.sort = scalastyle
rewrite.sortModifiers.order = [
"implicit", "private", "sealed", "abstract",
"override", "final", "protected", "lazy"
]
# Space
spaces.inImportCurlyBraces = true
trailingCommas = always