-
Notifications
You must be signed in to change notification settings - Fork 121
/
.scalafmt.conf
38 lines (30 loc) · 1.1 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
version = 3.8.3
runner.dialect = scala212
project.git = true
project.excludeFilters = [ /sbt-test/, /input_sources/, /contraband-scala/ ]
maxColumn = 100
newlines.source = keep
# We use Asterisk style (aka JavaDoc style).
# But we don't want to reformat all the old comments, so:
docstrings.style = keep
# This also seems more idiomatic to include whitespace in import x.{ yyy }
spaces.inImportCurlyBraces = true
# This is more idiomatic Scala.
# http://docs.scala-lang.org/style/indentation.html#methods-with-numerous-arguments
align.openParenCallSite = false
align.openParenDefnSite = false
# For better code clarity
danglingParentheses.callSite = true
danglingParentheses.defnSite = true
# Minimize diffs
rewrite.trailingCommas.style = keep
rewrite.scala3.convertToNewSyntax = true
fileOverride {
"glob:**/internal/compiler-bridge/**" {
rewrite.scala3.convertToNewSyntax = false
}
}
runner.dialectOverride.allowSignificantIndentation = false
runner.dialectOverride.allowAsForImportRename = false
runner.dialectOverride.allowStarWildcardImport = false
runner.dialectOverride.allowPostfixStarVarargSplices = false