Hello,
I've just added Scalastyle to our project and I'd like our automatic build to fail if Scalastyle generates any error.
The build command I use is:
sbt scalastyle clean test
And here's what I get:
Processed 497 file(s)
Found 1 errors
Found 0 warnings
Finished in 0 ms
[success] created: .../target/scalastyle-result.xml
[error] exists error
[success] Total time: 2 s, completed Dec 12, 2013 11:04:46 AM
So, apparently, SBT returns an exit code of 0, instead of 1, and the build doesn't break (no email sent, etc.).
Is there anything I can do (SBT configuration) to get the correct behavior?
Thanks,
Olivier