As far as I can tell, Sonar isn't meant to be used like that. The usual practice is to always run the full analysis and then check out the results in the web app (or get notified by the web app). It is also recommended to run analysis at most once a day because it can take a long time.
If you want to fail early (e.g. as part of your pre-commit build), consider using the Gradle code quality plugins. They just got a major overhaul for milestone 8. -- Peter Niederwieser Principal Engineer, Gradleware http://gradleware.com Creator, Spock Framework http://spockframework.org Twitter: @pniederw -- View this message in context: http://gradle.1045684.n5.nabble.com/How-to-fail-the-build-if-sonar-detects-blockers-tp5449869p5450966.html Sent from the gradle-user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email