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

> Scalafmt cannot do anything regarding import ordering/grouping because it's 
> possible to break behaviour since Scala is import ordering sensitive.

if using relative imports without careful grouping, that's correct. if groups 
are configured with FDQN prefixes such as `com`, `org.apache` and one of these 
domain prefixes is not used in the middle (i.e., 
`org.apache.xxx.yyy.org.apache.zzz`), then scalafmt will group and sort within 
these groups and put the rest after them.

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

----
This is an automatically sent email for notifications@pekko.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@pekko.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org
For additional commands, e-mail: notifications-h...@pekko.apache.org

Reply via email to