We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
verticalMultiline.arityThreshold
Please paste the contents of your .scalafmt.conf file here:
.scalafmt.conf
version: 3.7.2 runner.dialect: scala213 maxColumn: 120 docstrings.style: Asterisk docstrings.wrap: "yes" assumeStandardLibraryStripMargin: true align.preset: none trailingCommas: multiple lineEndings: unix continuationIndent { callSite: 2 defnSite: 2 extendSite: 2 } newlines { alwaysBeforeElseAfterCurlyIf: false beforeCurlyLambdaParams: never } verticalMultiline { atDefnSite: true newlineAfterOpenParen: true arityThreshold: 5 }
When I run scalafmt via CLI like this: sbt scalafmtAll
sbt scalafmtAll
Given code like this:
package logging object Log { def redactIds(s: String): String = s.replaceAll("\\d{5,}", "<redacted>") def showThrowable(e: Throwable): String = Option(e.getMessage) .filter(_.nonEmpty) .fold(e.getClass.getName)(m => s"${e.getClass.getName}: ${redactIds(m)}")
Scalafmt formats code like this:
package logging object Log { def redactIds( s: String ): String = s.replaceAll("\\d{5,}", "<redacted>") def showThrowable( e: Throwable ): String = Option(e.getMessage) .filter(_.nonEmpty) .fold(e.getClass.getName)(m => s"${e.getClass.getName}: ${redactIds(m)}")
I would like the formatted output to look like this:
Use 3.7.1
3.7.1
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Configuration (required)
Please paste the contents of your
.scalafmt.conf
file here:Command-line parameters (required)
When I run scalafmt via CLI like this:
sbt scalafmtAll
Steps
Given code like this:
Problem
Scalafmt formats code like this:
Expectation
I would like the formatted output to look like this:
Workaround
Use
3.7.1
The text was updated successfully, but these errors were encountered: