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

Automatic run of scapegoat inspection when project is compiling #884

Open
loicdescotte opened this issue Oct 9, 2024 · 1 comment
Open

Comments

@loicdescotte
Copy link

loicdescotte commented Oct 9, 2024

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

@Johnnei
Copy link
Contributor

Johnnei commented Oct 9, 2024

Hi, the infinite loop is likely the same cause as scapegoat-scala/sbt-scapegoat#190
I'm looking to address that problem.

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

2 participants