We are facing an issue where the feature branch we created from master is passing the Sonar analysis. But the master branch analysis fails with code smells from old code when the feature branch is merged with master. The only change in the environment is that we are running on .net 6 framework. There are no changes in the Sonarqube quality profiles.
Sonar Scanner MSBUILD 5.6
Azure DevOps extension 4.29.1
Sonarqube enterprise version: 7.9.2
C# plugin version: 7.15