Unstable Lines of Codes

My company currently has Version on-prem instance of SonarQube. Even without changing a single line of code, the scan is getting different result each time. In that, Sometimes our results raised up but in next scan our results goes down. This problem isn’t occurring only in one project, but also in others. And we have checked that there are no rules, exclusions, inclusions etc.

Both have the same project and same configuration.

  • Sonar version :

  • MsBuild version: 15

Thanks in advance,
Best regards

Are you performing a full build (/t:Rebuild)?

1 Like

No, we don’t use /t:Rebuild parameter. We use msbuild like these
/t:BuildAndCopyArtifacts /m:1 /p:DebugSymbols=true /p:DebugType=full

Thanks in advance,
Best Regards

That is probably your issue. A clean build is needed.