- ALM used: GitHub
- CI system used: GitHub Actions
- Scanner command used:
sonar-scanner -Dsonar.projectVersion=<our.product.version> -X -Dsonar.pullrequest.key=<integer> -Dsonar.pullrequest.base=<basebranch> -Dsonar.pullrequest.branch=<newbranch>(We upload acoverage.xmlfile beforehand) - Languages of the repository: Python
- Error observed: In SonarQube Cloud > Reporting > Measures > Coverage, I cannot see which sections are detected as new lines.
Hi all!
When analysing our code coverage, we can’t see which lines of code are detected as new. When hovering over the cursor, we can see whether the section of code is covered or not (green or red), as well as a little bar on the left. We used to see another grey bar indicating it was a new line, but we can’t see it anymore.
Also, there are two warnings in our Summary page. I’m unsure if this is related or not:
Warnings in last analysis
The following error(s) occurred while trying to import coverage report:
Cannot resolve the file path ‘_global_coverage_/no-op-exe.py’ of the coverage report, the file does not exist in all ‘source’.Shallow clone detected during the analysis. Some files will miss SCM information. This will affect features like auto-assignment of issues. Please configure your build to disable shallow clone.
