The Pullrequest analysis shows 0 lines of code in the Sonarcloud portal. When I checked the ‘Code’ section, it was empty. I am attaching images for reference. Any guidance will be immensely appreciated as this is an urgent mattter.
Thanks for the response. I am not using any CI to run the analysis but only the Sonarscanner in my CLI to run the analysis (so autoscan i suppose). I added 3-5 lines of code in the PR. And as mentioned, there are no files under the Code section on the dashboard in the website.
Apologies for not answering that properly. I was unsure which category Sonarscanner + CLI came under, I have also gone through the prereqs and there are no conflicts with them.
The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.
And… I don’t fully understand what I’m seeing in it:
13:46:58.186 INFO: SCM collecting changed files in the branch (done) | time=87ms
13:46:58.186 DEBUG: SCM reported 5 files changed in the branch
...
13:47:32.224 DEBUG: SCM reported changed lines for 0 files in the branch
At the beginning, it looks like changed files are found, but by the end of analysis… they’re not.