You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Katrix there's a comment in the documentation specifically calling out the limitation that this rule cannot support relative imports because there's no semantic information available. what you want is possible only with scalafix.
I would expect it to just cancel the current sort of it reaches a val inbetween imports though. That doesn't sound like that big of a deal. I'm not really asking for it to sort local imports like that. In this case (not top level would be good enough) I would prefer it just not doing anything instead of trying and failing.
This template is a guideline, not a strict requirement.
Steps
Given code like this:
When I run scalafmt like this:
IntelliJ keybind
Problem
Scalafmt formats code like this:
Expectation
I would like the formatted output to look like this:
Workaround
Keeping the first import outside the class it works fine.
Notes
See also..
The text was updated successfully, but these errors were encountered: