SonarCloud decoration in Azure DevOps PR ignores Quality profile

Hi,

Our CI process is integrated with SonarCloud. The decoration of our PR works well.
We defined a custom Quality profile to exclude some Smell code. We assigned this Quality profile to a project.

However, while the Quality profile is used correctly within the SonarCloud project summary page, the PR is still decorated with smell code that are disabled in the quality profile. In our understand, that should not happen.

How can we make the PR decoration to match the Quality profile of the project?

Thank you in advance for your hepl!

Regards,

Dorian

Hey there.

Can you share a screenshot? What rule exactly is being triggered that isn’t included in your Quality Profile?

Hi,

We actually disabled all Smell code in the quality profile:
image

We assigned the quality profile to the project:
image
I dont have a screenshot at the moment, but we have some comments related to these disabled smell code in our PRs (I will update the ticket once we have a new PR with sonar smell code decoration).

Regards,

Dorian

Here is a screenshot of a Smell code detected:

Do you have any idea why it show up here?

Thanks.

This is an issue raised by native Roslyn analyzers and imported into SonarQube. You can turn these off in your project-level Administration > External Analyzers > C# > Ignore issues from external Roslyn analyzers

Hi Colin,

Indeed, this is what we found last week.
We disabled it and we don’t have any more decoration regarding to smell code.

Thank you for your help an dyour reactivity!

Regards,

Dorian

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.