wartremover
wartremover copied to clipboard
Compilation failed with `bad option: -P:wartremover:only-warn-traverser:All`
- 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