-
Notifications
You must be signed in to change notification settings - Fork 3
/
.scalafmt.conf
44 lines (37 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
39
40
41
42
43
44
version = 3.7.14
runner.dialect = scala213source3
align = none
maxColumn = 120 # For wide displays.
assumeStandardLibraryStripMargin = true
align.tokens = [{code = "=>", owner = "Case"}, {code = "<-"}]
align.allowOverflow = true
align.arrowEnumeratorGenerator = true
align.openParenCallSite = false
align.openParenDefnSite = false
newlines.topLevelStatementBlankLines = [
{blanks {before = 1}}
{regex = "^Import|^Term.ApplyInfix"}
]
newlines.alwaysBeforeElseAfterCurlyIf = false
indentOperator.topLevelOnly = true
docstrings.style = SpaceAsterisk
docstrings.wrapMaxColumn = 80
includeCurlyBraceInSelectChains = false
includeNoParensInSelectChains = false
rewrite.rules = [SortModifiers, PreferCurlyFors, SortImports, RedundantBraces]
rewrite.scala3.convertToNewSyntax = true
rewrite.imports.groups = [
[".*"],
["java\\..*", "javax\\..*", "scala\\..*"]
]
project.excludeFilters = ["/target/"]
lineEndings = preserve
fileOverride {
"glob:**/*.sbt" {
runner.dialect = sbt1
rewrite.scala3.convertToNewSyntax = false
}
"glob:**/project/*.scala" {
rewrite.scala3.convertToNewSyntax = false
}
}