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:
46
46
``` scala
47
47
// project/plugins.sbt
48
48
49
- addSbtPlugin(" ch.epfl.scala" % " sbt-scalafix" % " 0.7 .0-RC1" )
49
+ addSbtPlugin(" ch.epfl.scala" % " sbt-scalafix" % " 0.9 .0-RC1" )
50
50
```
51
51
52
52
``` scala
@@ -62,11 +62,10 @@ libraryDependencies += collectionCompat // required for Collection213CrossCompat
62
62
addCompilerPlugin(scalafixSemanticdb)
63
63
scalacOptions ++= List (
64
64
" -Yrangepos" ,
65
- " -Ywarn-unused-import" ,
66
- " -P:semanticdb:synthetics:on"
65
+ " -P:semanticdb:synthetics:on" // Required by the collection rewrites
67
66
)
68
67
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
70
69
```
71
70
72
71
Then run:
@@ -77,6 +76,8 @@ Then run:
77
76
> ; scalafix Collection213CrossCompat ; test:scalafix Collection213CrossCompat # For Libraries
78
77
```
79
78
79
+ The official documentation: https://scalacenter.github.io/scalafix/docs/users/installation.html
80
+
80
81
The migration tool is not exhaustive and we will continue to improve
81
82
it over time. If you encounter a use case that’s not supported, please
82
83
report it as described in the
Original file line number Diff line number Diff line change @@ -162,10 +162,6 @@ lazy val `scalafix-data` = MultiScalaProject(
162
162
" scalafix/data" ,
163
163
_.settings(sharedScalafixSettings)
164
164
.settings(dontPublish)
165
- .settings(
166
- addCompilerPlugin(scalafixSemanticdb),
167
- scalacOptions += " -P:semanticdb:synthetics:on"
168
- )
169
165
)
170
166
171
167
val `scalafix-data211` = `scalafix-data`(scala211, _.dependsOn(compat211JVM))
You can’t perform that action at this time.
0 commit comments