Restrict code deliver to stream if any SonarQube rule violation
One answer
The general logic is explained in https://jazz.net/library/article/1000
Start here: https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/
On https://rsjazz.wordpress.com are various "Participants" - follow up actions and "Advisors" which are preconditions you want to write.
Then you need to know the Sonar API and you need to know how to know a rule fails. If it runs in the Eclipse client you have to write an eclipse client advisor extension it would run similar to the "Clean Workspace" and "No Unused Imports".
The key is, how your advisor knows that a rule is violated.
Start here: https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/
On https://rsjazz.wordpress.com are various "Participants" - follow up actions and "Advisors" which are preconditions you want to write.
Then you need to know the Sonar API and you need to know how to know a rule fails. If it runs in the Eclipse client you have to write an eclipse client advisor extension it would run similar to the "Clean Workspace" and "No Unused Imports".
The key is, how your advisor knows that a rule is violated.