GitHub user pjfanning added a comment to the discussion: Is there a way we 
could sbt or a sbt plugin to sort the imports how we want?

I found an example in pekko-http that is affected.

```
import org.apache.pekko
import pekko.http.scaladsl.model._
import MediaTypes._
```

The scalafix sortImports doesn't treat `import MediaTypes._` as needing to be 
sorted under `import pekko.http.scaladsl.model._`

It is not that common. I fixed the issue in my peko-http PR by modifying such 
imports to something like `import pekko.http.scaladsl.model.MediaTypes._`. A 
one-off change that keeps the import sorting happy going forward.


GitHub link: 
https://github.com/apache/pekko/discussions/2228#discussioncomment-14453560

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to