scalacenter / scalafix

Refactoring and linting tool for Scala
https://scalacenter.github.io/scalafix/
BSD 3-Clause "New" or "Revised" License
830 stars 186 forks source link

Support dependencies & repositories in .scalafix.conf #1625

Open bjaglin opened 2 years ago

bjaglin commented 2 years ago

Since https://github.com/scalacenter/scalafix/pull/1152, scalafix-interfaces allow clients to offload dependency resolution to scalafix using Coursier artifact coordinates & repositories. This should also be available as configuration keys to provide a consistent experience across clients.

rules = [
  "OrganizeImports"
]
dependencies = [
  "com.github.liancheng::organize-imports:0.6.0"
]
respositories = [
  "ivy:https://foo.com/a/b/c/[defaultPattern]"
]

Triggered by https://github.com/scalameta/metals/issues/4070

tgodzik commented 2 years ago

This would be amazing! I am currently working around it by adding a config in the metals user settings, but that is far from perfect.

I would be glad to implement it, but I will most likely not have the time :sweat: