File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ We created two migration rules:
4646``` scala
4747// project/plugins.sbt
4848
49- addSbtPlugin(" ch.epfl.scala" % " sbt-scalafix" % " 0.7 .0-RC1" )
49+ addSbtPlugin(" ch.epfl.scala" % " sbt-scalafix" % " 0.9 .0-RC1" )
5050```
5151
5252``` scala
@@ -62,11 +62,10 @@ libraryDependencies += collectionCompat // required for Collection213CrossCompat
6262addCompilerPlugin(scalafixSemanticdb)
6363scalacOptions ++= List (
6464 " -Yrangepos" ,
65- " -Ywarn-unused-import" ,
66- " -P:semanticdb:synthetics:on"
65+ " -P:semanticdb:synthetics:on" // Required by the collection rewrites
6766)
6867
69- scalafixDependencies in ThisBuild += " org.scala-lang.modules" %% " scala-collection-migrations" % Dependencies . collectionCompatVersion
68+ scalafixDependencies in ThisBuild += " org.scala-lang.modules" %% " scala-collection-migrations" % collectionCompatVersion
7069```
7170
7271Then run:
@@ -77,6 +76,8 @@ Then run:
7776> ; scalafix Collection213CrossCompat ; test:scalafix Collection213CrossCompat # For Libraries
7877```
7978
79+ The official documentation: https://scalacenter.github.io/scalafix/docs/users/installation.html
80+
8081The migration tool is not exhaustive and we will continue to improve
8182it over time. If you encounter a use case that’s not supported, please
8283report it as described in the
Original file line number Diff line number Diff line change @@ -162,10 +162,6 @@ lazy val `scalafix-data` = MultiScalaProject(
162162 " scalafix/data" ,
163163 _.settings(sharedScalafixSettings)
164164 .settings(dontPublish)
165- .settings(
166- addCompilerPlugin(scalafixSemanticdb),
167- scalacOptions += " -P:semanticdb:synthetics:on"
168- )
169165)
170166
171167val `scalafix-data211` = `scalafix-data`(scala211, _.dependsOn(compat211JVM))
You can’t perform that action at this time.
0 commit comments