And the issue is intermittent. I also tried to clear the cache at ~/.sonar and .scannerwork, but it doesn’t help. It will be green after several times rescan.
I have checked but there is a lot of info in the debug log (around 40k lines of logs).
I found some msg like this ... \DashboardViewModelImpl.swift' was detected as changed but without having changed lines
And SCM reported 2630 files changed in the branch, but actually, there are not greater than 100 changed files in the scanned branch.
Shallow clone detected, no blame information will be provided. You can convert to non-shallow with 'git fetch --unshallow'
Missing blame information for the following files:
It might be useful to share the full analysis logs, or turn of DEBUG mode for one run to see if anything becomes obvious (I forgot that, for some reason, we have very extensive git logging in SonarCloud that we turned off in SonarQube).
I’d also like to double-check: are you running the scan locally? In a CI environment?