Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nicolasfara opened this issue Jul 26, 2022 · 0 comments

Comments

@nicolasfara
Copy link

nicolasfara commented Jul 26, 2022

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants