Skip to content

Commit cb9c3e1

Browse files
committed
style: change scala formatter
1 parent 2150ae0 commit cb9c3e1

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.scalafmt.conf

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
version = "3.0.0-RC5"
1+
version = "3.9.0"
22

3-
preset = defaultWithAlign
3+
runner.dialect = scala3
4+
preset=IntelliJ
45
project.git = true
56
maxColumn = 160
6-
unindentTopLevelOperators = true
77
danglingParentheses.preset = true
88
spaces.inImportCurlyBraces = true
99
newlines.alwaysBeforeElseAfterCurlyIf = true
10+
newlines.beforeCurlyLambdaParams = true
11+
align.preset = more
1012

1113
rewrite.rules = [AvoidInfix, PreferCurlyFors, SortImports, SortModifiers, RedundantBraces]
1214

13-
rewrite.redundantBraces.methodBodies = false
15+
rewrite.redundantBraces.methodBodies = true
1416
rewrite.redundantBraces.includeUnitMethods = true
15-
rewrite.redundantBraces.parensForOneLineApply = true
16-
rewrite.redundantBraces.maxLines = 1
17+
rewrite.redundantBraces.parensForOneLineApply = false
18+
rewrite.redundantBraces.maxLines = 0
1719
rewrite.redundantBraces.ifElseExpressions = false
1820
rewrite.redundantBraces.methodBodies = false
19-
rewrite.redundantBraces.includeUnitMethods = false
21+
rewrite.redundantBraces.includeUnitMethods = false
22+
rewrite.imports.expand = true

build_release.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ releaseProcess := {
5656
releaseStepCommand("sonatypeBundleRelease"),
5757
releaseStepCommand("ci-deploy-docs"),
5858
setToMyNextVersion,
59-
releaseStepCommand("scalafmt"),
59+
releaseStepCommand("scalafmtAll"),
6060
gitAddAllTask,
6161
commitNextVersion,
6262
pushChanges

0 commit comments

Comments
 (0)