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
!
Please paste the smallest possible set of .scalafmt.conf configuration parameters that reproduces the problem:
.scalafmt.conf
version = 3.8.3 runner.dialect = scala212 rewrite.rules = [RedundantParens]
When I run scalafmt via CLI like this: scalafmt
scalafmt
Given code like this:
object Test { val boolean = true println(s"${(!boolean).toString}") }
Scalafmt formats code like this:
object Test { val boolean = true println(s"${!boolean.toString}") }
I would like the formatted output to look like this:
I can workaround that by either reverting the version (to 3.8.2) or removing the RedundantParens rewrite rules.
RedundantParens
The text was updated successfully, but these errors were encountered:
duplicate of #4117.
Sorry, something went wrong.
No branches or pull requests
Configuration (required)
Please paste the smallest possible set of
.scalafmt.conf
configuration parameters that reproduces the problem:
Command-line parameters (required)
When I run scalafmt via CLI like this:
scalafmt
Steps
Given code like this:
Problem
Scalafmt formats code like this:
Expectation
I would like the formatted output to look like this:
Workaround
I can workaround that by either reverting the version (to 3.8.2) or removing the
RedundantParens
rewrite rules.Notes
The text was updated successfully, but these errors were encountered: