Create a Warning when a Rule gives an Issue

  • Sonarqube 7.7 (Will use 7.9 LTS when released)

I’m creating a new rule. The rule is very important for the project so when that rule fails I want to give a warning on Sonarqube. I couldn’t find anything on documentation about adding a warning to Sonarqube. So how can I do that?

If there is a problem with analysis, we get a warning like this.


So how can I add such warning when the rule I wrote gives an issue?


This space is for analysis warnings, not general warnings. Please don’t use this space for other types of alerts.

If this rule is a blocker issue, why not mark issues raised with that rule as such and make sure the Quality Gate fails on Blocker issues?