Replies: 5 comments 26 replies
-
It looks like https://scalacenter.github.io/scalafix/docs/rules/OrganizeImports.html#groups should support this. Either way we can use scalafix OrganizeImports rule, just either need to try to config the grouping as we want or get rid of the grouping. I personally prefer ungrouped, exploded imports, because those are easy to be made to work in both scalafix and IDEs |
Beta Was this translation helpful? Give feedback.
-
We can add some thing format on format off |
Beta Was this translation helpful? Give feedback.
-
I already looked into it, there isn't an automated tool that satisfies our requirements, specifically
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) |
Beta Was this translation helpful? Give feedback.
-
If we want more contributors, I think we need to simplify the process and make everything as automated and tool-based as possible, rather than manually adjusting things. Everyone's local settings may be different, and without a tool to guarantee that everything is set up correctly, problems are very likely to occur. It's time-consuming and labor-intensive, and no one wants to mess around with it. |
Beta Was this translation helpful? Give feedback.
-
refs: https://scalacenter.github.io/scalafix/docs/rules/OrganizeImports.html |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
import org.apache.pekko
so that we can save on theorg.apache
part when importing Pekko classes - so a sort tool that can handle that would be great - I am not wedded to maintaining this if it makes life easier to the tooling although I suspect that some people like themIn this repo, we have
sbt sortImports
- an alias setup to call scalafix commands. The output seems good but some how we don't use it.Beta Was this translation helpful? Give feedback.
All reactions