forked from sbt/zinc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
39 lines (31 loc) · 1.11 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
version = 3.8.3
runner.dialect = scala3
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
rewrite.scala3.newSyntax.control = false
fileOverride {
"glob:**/internal/compiler-bridge/**" {
rewrite.scala3.convertToNewSyntax = false
runner.dialect = scala213
}
}
runner.dialectOverride.allowSignificantIndentation = false
runner.dialectOverride.allowAsForImportRename = false
runner.dialectOverride.allowStarWildcardImport = false