GitHub user mdedetrich added a comment to the discussion: Is there a way we could sbt or a sbt plugin to sort the imports how we want?
> > what about > > https://scalameta.org/scalafmt/docs/configuration.html#imports-groups > > > > I think I have tried it a long while ago, but cannot remember if it had any > issues or not. Often developers want to both sort imports and remove unused, > and latter cannot be done by scalafmt, but scalafix with `OrganizeImports` > can do both. Scalafmt cannot do anything regarding import ordering/grouping because it's possible to break behaviour since Scala is import ordering sensitive. It needs to be done in scalafix as only scalafix can calculate effects of import changes as it has compile time information. GitHub link: https://github.com/apache/pekko/discussions/2228#discussioncomment-14447096 ---- 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