Skip to content

Import jumps on to comment line when there is a comment #26

@ckipp01

Description

@ckipp01

Given the following code block, if you run scalafix it will cause the second import to jump up a line resulting in it being commented out.

import java.time.Period
// import this here
import java.time.Instant

object hello extends App {

  val x: Instant = Instant.now()
  val y: Period = Period.ZERO

}

It will become this:

import java.time.Period
// import this hereimport java.time.Instant

object hello extends App {

  val x: Instant = Instant.now()
  val y: Period = Period.ZERO

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions