forked from rorygraves/ScalaClean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scalafmt.conf
28 lines (20 loc) · 829 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
version = 2.7.3
preset = defaultWithAlign
maxColumn = 120
assumeStandardLibraryStripMargin = true
newlines.afterCurlyLambdaParams = squash
newlines.beforeMultilineDef = fold
newlines.topLevelStatements = [before, after]
rewrite.rules += AvoidInfix
rewrite.rules += RedundantBraces
rewrite.redundantBraces.generalExpressions = false
rewrite.redundantBraces.methodBodies = false
trailingCommas = preserve
# http://docs.scala-lang.org/style/scaladoc.html recommends the JavaDoc style.
# scala/scala is written that way too https://github.com/scala/scala/blob/v2.12.2/src/library/scala/Predef.scala
docstrings.style = Asterisk
docstrings.oneline = fold
project.git = true
lineEndings = preserve
# This also seems more idiomatic to include whitespace in import x.{ yyy }
spaces.inImportCurlyBraces = true