Mismatch in number of Code Smells PR build against main branch after code was merged

Hi, we’ve recently migrated to .NET8, the PR showed 1 new code smell but on merging the changes in the main branch there was a spike in code smells, 177 new code smells.

The quality gate is configured to fail, but it seems that they were not reported. is there a specific SonarQube version compatible with .NET 8?

SonarQube version is 9.9.3

Thanks,
Maria

Hi Maria,

Welcome to the community!

What did the PR that showed only 1 new Code Smell do? Did it do the upgrade to .NET8? Because this is a classic case for new issues on old code. And it’s normal that you wouldn’t have seen those issues in the PR, because PR analysis only raises issues on lines changed in the PR.

 
Ann