Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Formatting is not preserved after exploding imports #279

Closed
johnspade opened this issue Jul 26, 2022 · 0 comments
Closed

Formatting is not preserved after exploding imports #279

johnspade opened this issue Jul 26, 2022 · 0 comments

Comments

@johnspade
Copy link
Contributor

If I have the following imports (formatted with spaces.inImportCurlyBraces = true in scalafmt, which adds spaces within the curly braces):

import bar.{ Bar => Baz, _ }

then scalafix removes the spaces within the curly braces:

import bar.{Bar => Baz, _}

I believe that this is the same issue as #127 but I have groupedImports = Explode in my scalafix config instead of Merge. I think that we should apply the fix from #127 to Explode as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant