Organize imports should clean up import lists
Organize imports doesn't always clean up the import list. If it is invoked on
it only adds an empty line after the package but not before the class. Also I saw cases where multiple new lines were added after each other whereas only a single one should be added.
package x
import scala.collection.mutable.Buffer
import scala.collection.mutable.ListBuffer
object X extends App {
Buffer
ListBuffer
}
it only adds an empty line after the package but not before the class. Also I saw cases where multiple new lines were added after each other whereas only a single one should be added.
Leave a comment
There is a canceled PR with a half working implementation: https://github.com/scala-ide/scala-refactoring/pull/143
The conclusion was to fix this in a Scala formatter.
The conclusion was to fix this in a Scala formatter.
Move ticket to next milestone.