wartremover icon indicating copy to clipboard operation
wartremover copied to clipboard

Compilation failed with `bad option: -P:wartremover:only-warn-traverser:All`

Open nicolasfara opened this issue 2 years ago • 0 comments

  • Scala version: 3.2.0-RC2
  • wartremover version: 3.0.5

In order to reproduce the bug, a minimal build.sbt is proposed:

ThisBuild / scalaVersion := "3.2.0-RC2"

addCompilerPlugin("org.wartremover" %% "wartremover" % "3.0.5" cross CrossVersion.full)

ThisBuild / scalacOptions ++= Seq(
  "-language:strictEquality",
  "-P:wartremover:traverser:org.wartremover.warts.Unsafe",
)

lazy val root = project
  .in(file("."))

Running the task sbt compile, the following error is raised:

[error] bad option: -P:wartremover:traverser:org.wartremover.warts.Unsafe
[error] one error found
[error] (utils / Compile / compileIncremental) Compilation failed
[error] Total time: 1 s, completed Jul 26, 2022, 6:04:24 PM

nicolasfara avatar Jul 26 '22 16:07 nicolasfara