Dealing with Info Severity

98 views
Skip to first unread message

kysi...@gmail.com

unread,
May 25, 2018, 7:59:24 AM5/25/18
to SonarQube
Hi. We had an interesting issue with code smells.

So if you set severity to "info" for bugs and vulnerabilities they do not affect the quality gate, because the rating is not affected. 
  1. This is handy when we want to still report on the issues but do not want to actively fix these issues in new code. At least right now. 
  2. It also allows us to inherit from the default rule profiles to still get updates automatically. 
But for code smells the quality gate doesn't work like that. Info issues can still affect the quality gate.

At the moment the only option is to disable the rule itself but you lose the 2 advantages of the above.

So unless there is another way to do this, it would be a useful feature to be able to configure the technical debt not to include info level issues. 



G. Ann Campbell

unread,
May 25, 2018, 8:46:19 AM5/25/18
to SonarQube
Hi,

Take a look at the rule update web service: https://sonarcloud.io/web_api/api/rules/update


Ann

kysi...@gmail.com

unread,
Jun 2, 2018, 2:15:07 PM6/2/18
to SonarQube
Thanks we had a try, idea being to set the re-mediation time to 0 so it can be reported but not affect technical debt metric but it looks like that will only work for custom and template rules. 

Built in rules seem to block it.

G. Ann Campbell

unread,
Jun 4, 2018, 3:04:35 AM6/4/18
to kysi...@gmail.com, SonarQube
Hi,

There's no UI for that, but take a look at this web service: https://sonarcloud.io/web_api/api/rules/update


Ann



---
G. Ann Campbell | SonarSource
Product Manager
@GAnnCampbell

--
Important: this SonarQube Google Group will close on June 11th, 2018, in order to move to a new forum to power even more community discussions. See details in this post: https://groups.google.com/d/msg/sonarqube/BbSZz-JnhVM/DavhMueEAAAJ
---
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/XGpdF_Ng4N8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/03a0ee4b-5103-40e4-bf28-7f38070a0dc2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages