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?

I already looked into it, there isn't an automated tool that satisfies our 
requirements, specifically

- scalafix doesn't support nested alias imports i.e. `import org.apache.pekko` 
followed up with `import pekko...` imports. See issue (that I have raised) 
https://github.com/scalacenter/scalafix/issues/2100
- Even if previous point is fixed, the biggest issue is our docs with paradox. 
You may have noticed that in the `docs` project, we have duplicated imports and 
this is intentional, its because we have paradox code snippets in multiple 
places i.e. `// #some snippet`. There is also an issue on this, see 
https://github.com/scalacenter/scalafix/issues/1793.

Aside from these problems, scalafix can solve all of our issues, there is no 
other tool that can sort imports the way we want (I already tried it in pekko 
some time ago)

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

----
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