scala-steward icon indicating copy to clipboard operation
scala-steward copied to clipboard

Linking scalatest scalafix rules to scalatestplus dependency too

Open kiranbayram opened this issue 5 years ago • 4 comments

Hello there,

Should we link scalatest scalafix rules to scalatestplus dependency too, so that for example when scalatestplus is updated to 5.1.x, the scalatest scalafix rule for 3.1.x is also applied. WDYT?

Cheers 🍻

kiranbayram avatar Jul 09 '20 07:07 kiranbayram

Hello @fthomas , do you have any comments on this ?

kiranbayram avatar Jul 13 '20 20:07 kiranbayram

I guess your reason for doing that is that scalatestplus-play pulls scalatest in as transitive dependency and builds are more likely to just depend on scalatestplus-play instead of both dependencies? It seems to raise the more general question if Scala Steward should run Scalafix migrations on bumps of transitive dependencies.

fthomas avatar Sep 07 '20 20:09 fthomas

Yes, you summed it up pretty well 👍

kiranbayram avatar Sep 08 '20 11:09 kiranbayram

Ok. My current thinking is that it would be okay to run migrations for transitive dependency bumps (however Scala Steward figures out that it should run a migration in these cases) but we should not link downstream dependencies to Scalafix migrations of upstream dependencies here in the scalafix-migrations.conf file because we can't enumerate every single downstream dependency.

fthomas avatar Oct 13 '20 14:10 fthomas