Run abide in the community build
retronym opened this issue · 4 comments
retronym commented
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!
SethTisue commented
@cunei is there something in dbuild that could add addSbtPlugin(... "abide" ...)
to every project?
cunei commented
@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 :)
cunei commented
There is also the "post-commands" option: those commands are run after building and testing.
SethTisue commented
relocated to scala/community-build#616