Skip to content

Commit

Permalink
WIP: Test OrganizeImports.removeUnused
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishiking committed Jun 30, 2023
1 parent ba6793d commit 3e5e6ab
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import scala.util.Try
object Dependencies {
val scala212 = "2.12.18"
val scala213 = "2.13.11"
val scala3 = "3.3.1-RC1"
val scala3 = "3.3.2-RC1-bin-SNAPSHOT"

val buildScalaVersions = Seq(scala212, scala213, scala3)
val buildWithTargetVersions: Seq[(String, String)] =
Expand Down
2 changes: 1 addition & 1 deletion project/ScalafixBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ object ScalafixBuild extends AutoPlugin with GhpagesKeys {
scalaVersion.value.startsWith("2.12")
}
lazy val warnUnusedImports = Def.setting {
if (isScala3.value) Nil
if (scalaVersion.value.startsWith("3.3.2")) Seq("-Wunused:all")
else if (isScala213.value) Seq("-Wunused:imports")
else Seq("-Ywarn-unused-import")
}
Expand Down

0 comments on commit 3e5e6ab

Please sign in to comment.