-
Notifications
You must be signed in to change notification settings - Fork 276
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
Separated defns get aligned since 3.0.5 #2775
Comments
It seems to happen only when one of the methods in the object / class has a scope modifier |
in the same example PR, same formatting got applied to the |
Another example: poslegm/munit-zio@50387ef |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps
Update scalafmt version from
3.0.4
to3.0.5
.Example:
https://github.com/tulz-app/laminext/pull/72/files
Given code like this:
When I run scalafmt like this:
via the sbt-scalafmt plugin.
Problem
Scalafmt formats code like this (there are more defs in the file, so the
=
got aligned with the furthest one):Expectation
I would like the formatted output to look like this (same as original, as it was already correctly formatted with 3.0.4):
Notes
This might be related to this PR: #2753
The text was updated successfully, but these errors were encountered: