Arend von Reinersdorff
Arend von Reinersdorff

Reputation: 4233

SonarQube - How to change severity of mulitple rules in bulk

I want to change the severity of mulitple rules in a quality profile in bulk. At the moment there are ca. 20 rules with "Blocker" severity and I want to set them all to "Critical". Because we created a new quality gate for blocker rule violations and this rules should not be included.

I could do this manually one by one. But I wonder if it's possible to do it in bulk. With 20 rules it's just annoying, with 100 rules changing the severity manually one by one would be a major headache.

There's an issue about this, SONAR-3421 "Enhance Bulk Change possibilities for Profile Rule Filter". The issues is closed now. But as far as I can tell, this functionalty has not been implemented.

Upvotes: 2

Views: 1643

Answers (2)

Ali Ben Zarrouk
Ali Ben Zarrouk

Reputation: 2020

work around is exporting the profile ==> notepad++ to bulk replace ==> restore profile

Upvotes: 2

I do confirm that this is not possible to bulk change the severity of a set of rules activated in a Quality Profile (whereas this is possible to bulk change the severity of a set of issues). Even if this might be useful from time to time, there is no plan to implement such feature at short term.

Upvotes: 2

Related Questions