-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.scalafmt.conf
26 lines (24 loc) · 994 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
version = "1.5.1"
style = IntelliJ
align = none
assumeStandardLibraryStripMargin = false
binPack.literalArgumentLists = true
binPack.parentConstructors = false
continuationIndent.defnSite = 4
danglingParentheses = true
docstrings = ScalaDoc
includeCurlyBraceInSelectChains = true
lineEndings = unix
maxColumn = 120
newlines.alwaysBeforeTopLevelStatements = true
newlines.penalizeSingleSelectMultiArgList = false
newlines.sometimesBeforeColonInMethodReturnType = true
optIn.breakChainOnFirstMethodDot = true
project.git = true
# rewrite.rules = [ AvoidInfix, SortImports, PreferCurlyFors ]
# https://github.com/scalameta/scalafmt/issues/932 removing AvoidInfix
rewrite.rules = [ SortImports, PreferCurlyFors ]
spaces.afterKeywordBeforeParen = true
project.includeFilters = [".*\\.sbt$", ".*\\.scala$"]
project.excludeFilters = [".*\\.scala.html$", "target/.*", "modules/admin/target/.*"]
onTestFailure = "To fix this, run `scalafmt` within sbt or `sbt scalafmt` on the project base directory"