We are using SonarQube Version 5.6.3 and GitLab for version control. On certain projects, the blame entries are not displayed in SonarQube projects whereas it is shown on the rest of the projects. There seems to be no difference in the project settings and also no clues from the logs. This feature comes builtin with the SonarQube version.
How can we let SonarQube display the blame information for all projects?
Please verify SCM settings for project:
Administration → General Settings → SCM
sonar.scm.disabled
is set tofalse
orDefault
(whereDefault: false
)If you cannot modify settings on the server you can add
-Dsonar.scm.disabled=false
to scanner execution.If SCM sensor is enabled then open logs from build and verify that:
lines exist:
SCM directory with metadata exists (e.g.
.git
)