Every analysis considered as new code

I’ve got an issue with pull requests and analysis on an Android project.
Every pull request’s code is considered as “New code”, and every old issues waiting to be fixed are “New issues”, though the destination branch is correct. I’ve got the same issue when analyzing a branch with the reference.

The baseline for new code is set this way :

  • develop is my main branch: “previous version”
  • pull requests: “reference branch” set to develop

Even a branch just created, modifying a useless comment in the project doesn’t work.

  • Developer Edition v10.7 (96327)
  • Installed by zip
  • Gitlab CI has variable GIT_DEPTH: 0

Edit : git rev-parse --is-shallow-repository returns false

And the answer was … to delete the repository on the server.

The initial clone was done months ago, and was initially running on another Sonar server. We switched recently, and maybe this is an issue for the scanner.

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