Skip to content

Automatic run of scapegoat inspection when project is compiling #884

@loicdescotte

Description

@loicdescotte

I'd like to run automatically the scapegoat inspections each time a SBT build is run.
I'm trying to this that way as I did the same for scalastyle,

lazy val compileScapegoatTask = taskKey[Unit]("scapegoat")

Compile / compile := (Compile / compile)
      .dependsOn(compileScapegoatTask)
      .value

But when I run sbt compile it gets stuck , maybe is it causing an infinite loop / cycle in the dependency graph.

Is there a better way to achieve this?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions