Incorrectly separating imports
See original GitHub issueMy .scalafix.conf
is:
rules = [
OrganizeImports,
RemoveUnused
]
RemoveUnused {
imports = false
privates = true
locals = true
}
OrganizeImports {
expandRelative = true
groupedImports = Merge
groups = ["*"]
importSelectorsOrder = Ascii
removeUnused = true
}
and when I format this:
import cats.CommutativeApplicative
import cats.effect.IO
import cats.effect.IO.ioEffect
import java.time.{Duration, Instant}
import scala.collection.Factory
import scala.concurrent.blocking
import scalaz.{-\/, BindRec, Catchable, Monad, \/, \/-}
it turns it into this:
import cats.CommutativeApplicative
import cats.effect.IO
import java.time.{Duration, Instant}
import scala.collection.Factory
import scala.concurrent.blocking
import scalaz.{-\/, BindRec, Catchable, Monad, \/, \/-}
import cats.effect.IO.ioEffect
It should do nothing according to my config.
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (18 by maintainers)
Top Results From Across the Web
Incorrect import order with code splitting and multiple entry ...
Using ECMAScript module imports means having to write your code to be robust to different import execution orders. The bundling algorithm in ...
Read more >Imports are incorrectly sorted and/or formatted | VS Code
I was able to get around it by splitting up my imports so that they don't get auto-formatted to be on multiple lines....
Read more >Tackling the most common errors when trying to import a CSV
Every line should be separated by a clear line break. That's it! There is no deviation from this pattern, no matter what dataset...
Read more >Outlook shows a Translation Error during the import of a ...
Translation Error A file error has occured in the Comma Separated Values translator while initializing a translator to build a field map.
Read more >Imports
FileUtils; // Violation should be separated by space import ... violation, extra separation before import // and wrong order, comes before ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sideeffffect, you got a comrade 😃 Now I’m convinced.
Fixed in #61 and made available in the newly cut 0.3.1-RC2 release.