Skip to content

Commit 6920ea6

Browse files
committed
Upgrade to scalafmt 3.4.0, add new indentOperator setting
1 parent 065da40 commit 6920ea6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.scalafmt.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# settings is preferred over adding especially as
44
# the Scala language evolves and styles change.
55
# Test upgrades: $ scripts/scalafmt --test 2> diff.txt
6-
version = "3.3.2"
6+
version = "3.4.0"
77
docstrings.style = AsteriskSpace
88
project.git = true
99
project.excludePaths = [
@@ -28,7 +28,7 @@ optIn.breakChainOnFirstMethodDot = false
2828
newlines.avoidForSimpleOverflow = [tooLong, punct, slc]
2929

3030
indent.callSite = 4
31-
indentOperator.topLevelOnly = false
31+
indentOperator.exemptScope = aloneArgOrBody
3232
indentOperator.include = ".*"
3333
indentOperator.exclude = "^(?:&&|\\|\\||\\+)$"
3434

scripts/scalafmt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
HERE="`dirname $0`"
6-
VERSION="3.3.2"
6+
VERSION="3.4.0"
77
COURSIER="$HERE/.coursier"
88
SCALAFMT="$HERE/.scalafmt-$VERSION"
99

0 commit comments

Comments
 (0)