scala / scala-abide

obsolete; visit https://github.com/scalacenter/scalafix instead

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run abide in the community build

retronym opened this issue · comments

Wouldn't it be swell if we could periodically run abide across the whole community build?

Benefits:

  • Find crasher bugs in Abide
  • Manually inspect a sample of the reported results (especially for newly added rules) to check for false positives
  • Provide some marketing collateral by finding bugs in the wild!

@cunei is there something in dbuild that could add addSbtPlugin(... "abide" ...) to every project?

@SethTisue The astonishingly complete dbuild documentation suggests that it is possible to run arbitrary bash commands, by wrapping them into an eval and injecting them in the "extra.commands" field. They will be executed after dependency rewriting, and before building. For instance:

extra.commands: [ "eval Process(Seq(\"ls\",\"-l\")).lines foreach println" ]

You could use this trick to inject an "abide.sbt" file into every project, I suppose :)

There is also the "post-commands" option: those commands are run after building and testing.