Hi There,
We signed up for Sonarcloud a few weeks ago.
- ALM used GitHub
- CI system used GCP Cloud Build
- Scanner command used when applicable (private details masked)
- Languages of the repository: JS
We turned on automatic analysis, and we saw that Sonarcloud was scanning about 40 K lines of code. While we liked the Sonar check and PR decoration features with the automatic analysis, we were a bit disappointed to learn that code coverage is not available with automatic analysis.
We then switched to sonar-scanner inside our pipeline on GCP Cloud Build. With our current approach, we noticed that Sonarcloud is now scanning 74 K lines of code, which is the actual number of lines of code in our repository. We’re still facing some issues in getting code coverage, as we posted on this thread: PR decoration with SonarCloud Automatic Analysis set to OFF.
The question I have here is why the automatic analysis is scanning only 40 K lines of code and providing only a partial picture, and not scanning the entire 74 K lines of code? Is there anything that we should do differently to get the complete picture with automatic analysis?
Thanks in advance.
Best,
Delip