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

Inspection warning level overrides with multi-project #74

Open
thomas-chauvet opened this issue May 23, 2018 · 2 comments
Open

Inspection warning level overrides with multi-project #74

thomas-chauvet opened this issue May 23, 2018 · 2 comments

Comments

@thomas-chauvet
Copy link

thomas-chauvet commented May 23, 2018

Hi,

I am trying to use scapegoat with multi-project.

I am not able to downgrade inspection warning level (from error to warning).

I add this in Common.scala which is called with .settings(Common.settings) for each subproject.

lazy val settings = Seq(
    scalaVersion := "2.11.12",
    //Scapegoat setting
    scapegoatVersion in ThisBuild := "1.3.5",
    scapegoatDisabledInspections := Seq("FinalModifierOnCaseClass"),
    scalacOptions ++= Seq("-P:scapegoat:overrideLevels:TryGet=Warning:EmptyInterpolatedString=Warning")
  )

But I have bad option: -P:scapegoat:overrideLevels:TryGet=Warning:EmptyInterpolatedString=Warning.

Is there a problem ?

EDIT:
I also tried sbt scapegoat -P:scapegoat:overrideLevels:TryGet=Warning directly in terminal, it seems that scapegoat doesn't take it into account.

@jgogstad
Copy link

Note that the documentation says to scope the scalacOptions to the Scapgoat configuration: scalacOptions in Scapegoat += ...

@cchantep
Copy link

cchantep commented Nov 8, 2024

Doesn't seem to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants