forked from insdami/Kastle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
43 lines (39 loc) · 1.45 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
# http://scalameta.org/scalafmt/
version = "2.5.2"
maxColumn = 100
lineEndings = unix
danglingParentheses = true
align.tokens = [
{code = "extends", owner = "Defn.(Class|Trait|Object)"},
{code = "//", owner = ".*"},
{code = "{", owner = "Template"},
{code = "}", owner = "Template"},
{code = "%", owner = "Term.ApplyInfix"},
{code = "%%", owner = "Term.ApplyInfix"},
{code = "%%%", owner = "Term.ApplyInfix"},
{code = "<-", owner = "Enumerator.Generator"}
{code = "->", owner = "Term.ApplyInfix"}
{code = "=>", owner = "Case"},
{code = "=", owner = "(Enumerator.Val|Defn.(Va(l|r)|Def|Type))"}
]
align.arrowEnumeratorGenerator = true
align.openParenCallSite = false
align.openParenDefnSite = false
continuationIndent = 2
continuationIndent.defnSite = 4
newlines.penalizeSingleSelectMultiArgList = false
includeCurlyBraceInSelectChains = false
newlines.alwaysBeforeTopLevelStatements = false
newlines.penalizeSingleSelectMultiArgList = true
newlines.sometimesBeforeColonInMethodReturnType = true
newlines.alwaysBeforeCurlyBraceLambdaParams = false
newlines.afterCurlyLambda = never
includeCurlyBraceInSelectChains = false
optIn.configStyleArguments = true
project.git = true
# ignore the templated html files because scalafmt generates a lot of useless
# warnings
project.excludeFilters = ["target/", ".*\\.scala\\.html"]
# adhere to intellij's convention so we don't have intellij and the formatter
# correcting eachother
spaces.inImportCurlyBraces = false