After studying for a long time, I haven’t found any reason for such differences. I want to locate the corresponding developer of each bug through automation tools, so I hope to get answers in the community.
What information do you need to judge? I found that this problem also exists in the community version of Sonar. Can you tell me how you get developer information? I can try to troubleshoot it myself.
The issue would appear to be that your files lack blame data, which means SonarQube has no idea who authored a line of code.
I’m not sure what tool you’re using to pull your repo (it looks like a repo command is issued, but I’m not familiar with it). You should make sure it’s performing a full clone of your repository…
And, issue auto-assignment is only done on the first analysis of a branch (for existing issues). You might want to remove your project and start again, once you sort out having the Git blame data available.
Now there are two python projects. The developers use the same environment, the same sonar access method, and both use gitlab ci access and the same trigger method. But they get completely different results. One project has all the developer information, and the other has no developer information.
I repeatedly checked the problem and didn’t know what the reason was. Did you call .git to get data from sonar? Or in other ways, have you found or encountered this problem?
Thank you for your reply. I have found the problem, because the default cloning mode of gitlab is shallow cloning, and not all SCM information has been obtained.