-
Notifications
You must be signed in to change notification settings - Fork 186
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
RemoveUnusedImports: trailing whitespace #216
Comments
Thanks for reporting! This should be fixable, but note that RemoveUnusedImports does a best-effort only to preserve formatting. It's recommended to run formatter after the rewrite. |
I've also noticed this -import scala.util.control.{ NonFatal, Breaks }
+import scala.util.control. NonFatal which is more annoying than the trailing whitespace. |
A very ad-hoc (but probably reasonable) solution would be to remove all surrounding whitespaces when removing the curly braces. |
I've been meaning to simplify the remove importee implementation. It shouldn't have to be this complicated. |
Fix #216, remove whitespace around removed curly braces.
The bug did not surface in the tests since they used |
Task is followed by a space.
The text was updated successfully, but these errors were encountered: