Restrict code deliver to stream if any SonarQube rule violation
![]()
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
![]()
Ralph Schoon (62.7k●3●36●43)
| 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. |