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
newlines.source = keep
version = "3.8.6" runner.dialect = "scala3" newlines { source = keep }
When I run scalafmt via CLI like this: scalafmt -c .scalafmt.conf src/app/main/scala/Snippet.scala
scalafmt -c .scalafmt.conf src/app/main/scala/Snippet.scala
Given code like this:
val _ = println( // x = "string" )
Scalafmt formats code like this:
I would like the formatted output to look like this:
Versions prior to 3.8.4 do not have this problem. Removing newlines.source = keep fixes the issue, but it formats other things differently.
The trailing comment in the example above is a workaround I have been using to avoid this kind of formatting:
val _ = println(x = "string" )
This case is caused by optIn.configStyleArguments = false which I use.
optIn.configStyleArguments = false
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Configuration
Command-line parameters
When I run scalafmt via CLI like this:
scalafmt -c .scalafmt.conf src/app/main/scala/Snippet.scala
Steps
Given code like this:
Problem
Scalafmt formats code like this:
Expectation
I would like the formatted output to look like this:
Workaround
Versions prior to 3.8.4 do not have this problem. Removing
newlines.source = keep
fixes the issue, but it formats other things differently.Notes
The trailing comment in the example above is a workaround I have been using to avoid this kind of formatting:
This case is caused by
optIn.configStyleArguments = false
which I use.The text was updated successfully, but these errors were encountered: