-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
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
running format with RedundantBraces rule twice produces different results after upgrade to 3.8.5 (from 3.8.3) #4731
Comments
please provide the information requested in the issue template. |
Looks like the old drafter broke, and we need to switch to the same thing as in metals https://github.com/scalameta/metals/tree/main/.github/ISSUE_TEMPLATE |
At least some issue discovered 😆 .. and fixed 👍 |
yep, this was unfortunate. now we have a useless drop-down with a single Bug report template. |
Requeired: Configurationversion = "3.8.5"
runner.dialect = scala3
rewrite.rules = [ "RedundantBraces" ] Required: Command-line parameters
StepsGiven code like this:
run ProblemScalafmt formats code like this:
ExpectationI would like the formatted output to look like this:
NotesThe expected output produces if you run |
After upgrading to
3.8.5
withRedundandBraces
rule enabled andscala3
dialect.Following code
is formatted to
Which is kind of nice and correct.
But running scalaftm again formats it once more:
The indentation for comments is removed.
The text was updated successfully, but these errors were encountered: