SonarCloud Quality Profiles

Is there a way in a quality profile in SonarCloud, you can change your action for each rule from Warnings to Errors? I want to do this so that way when we use Connected Mode from Visual Studio to get the profile ruleset from SonarCloud, those rules will have an Error action, and when you build it will break the code because of the Error Action as a status.

Hi,

In SonarCloud, there are no Warning nor Error severities, but more granular ones, defined in this dropdown,(Some mapping are done directly in SonarLint to match those 2) :

image

Please know that you cannot change the severity of a rule in a default quality profile, you should first make a copy (Click on ‘Quality Profiles’, then identify the one you’re interested in, then click on the wheel, then ‘Copy’. Then, click on a rule, you should see Quality Profiles related, and you can then click on change to change the severity

and when you build it will break the code because of the Error Action as a status.

Could you be more precise here ? What is the behavior you’re expecting ?

Thanks.

Mickaël

1 Like