liancheng / scalafix-organize-imports

A CI-friendly Scalafix semantic rule for organizing imports
MIT License
193 stars 22 forks source link

add an option to configure wildcards as in scala 2 style #287

Open mlachkar opened 2 years ago

mlachkar commented 2 years ago

When adding -xSouce3, intellij start changing all the wildcard (_) with the new syntax *. Maybe we can have some configuration to have only one style across the code.

EnviousSwan commented 2 years ago

When adding -xSouce3, intellij start changing all the wildcard (_) with the new syntax *. Maybe we can have some configuration to have only one style across the code.

There's a scalafix rule to rewrite all _ to the new * in https://github.com/xuwei-k/scalafix-rules https://github.com/xuwei-k/scalafix-rules/blob/main/rules/src/main/scala/fix/Scala3ImportRewrite.scala

So it should be really easy to write a rule that does the opposite 🤔