-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.scalafmt.conf
38 lines (35 loc) · 1.36 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
#
# Include most of the overrides provided by 'style = IntelliJ', with deviations noted
# See: https://github.com/scalameta/scalafmt/blob/c92153e777984db6d69ec359dd1b1115bd2199d6/scalafmt-core/shared/src/main/scala/org/scalafmt/config/Settings.scala#L19-L26
#
align.openParenCallSite = false
continuationIndent.callSite = 2
continuationIndent.defnSite = 2
continuationIndent.extendSite = 2 # IntelliJ default is '4'
danglingParentheses = true
# Allow breaking function application. See: http://scalameta.org/scalafmt/#Configstyle
# Put newline after opening ( and newline before closing ) to force one argument per line
optIn.configStyleArguments = true # IntelliJ default is 'false'
#
# Remaining options
#
align = more
align.arrowEnumeratorGenerator = false
align.openParenDefnSite = false
align.tokens = ["%", "%%"]
assumeStandardLibraryStripMargin = true
binPack.parentConstructors = false
binPack.literalArgumentLists = true
binPack.literalsMinArgCount = 20
continuationIndent.callSite = 2
continuationIndent.defnSite = 2
continuationIndent.extendSite = 2
docstrings = ScalaDoc
includeCurlyBraceInSelectChains = true
maxColumn = 120
newlines.penalizeSingleSelectMultiArgList = true
newlines.neverInResultType = true
newlines.sometimesBeforeColonInMethodReturnType = false
newlines.alwaysBeforeTopLevelStatements = true
# Only look at .scala files
project.includeFilters = [".*\\.scala$"]