SonarQube Does Not Recognize Code

I am using SonarQube Developer Edition Version 8.9.

When using Pull Request Analysis, SonarQube does not see the code. Here is the “Code” tab:


It only sees the coverage file created by OpenCover. When I am looking to analysis of branches I don’t see any problem. This only occurs in PR Analysis.

Here’s the screenshot of the branch analysis of the same branch that the Merge Request opened.

I am using GitLab CI and dotnet-sonarscanner.

Thank you.

I solved the problem,

For anyone that encounters this error:
The problem was I didn’t set GIT_DEPTH variable to 0 in .gitlab-ci.yml.

Dogac

2 Likes

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