It's all about the answers!

Ask a question

Restrict code deliver to stream if any SonarQube rule violation


Sachin Nairy (5111320) | asked Oct 20 '14, 5:03 a.m.


Any plugin is available to restrict code deliver to stream if any SonarQube rule violation exist, or someone please explain the logic to write plugin for the same, I have some idea on writing rtc plugin.



One answer



permanent link
Ralph Schoon (63.5k33646) | answered Oct 20 '14, 5:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.