Sonar Cloud pull request scanning on old code

  • ALM used ( Azure DevOps)
  • CI system used (Azure DevOps)
  • Languages of the repository (C#)

We have a Pull Request with only two files changed, but the SonarCloud scanner produces 60 or more issues within the other files of the project.

All the pull requests has the same problem with lots of issues.

We are seeing the error "This file no longer exists in the latest pull request changes.

Please help to advice on this.

Hi,

This sounds like a problem with the SCM metadata available to analysis. If you check your analysis log, I’m sure you see that it logs problems with the data.

Make sure the prerequisites are in place and that you’re not doing a shallow clone.

 
HTH,
Ann