I have got PR requests being analysed and results posted to the github PR. However Sonar doesn’t pickup any metrics (lines of code, % coverage, etc) when I look at it in the Sonarqube UI. It has everything as 0 despite there being changed lines. It also submits the same zero metrics to github ie
Kudos, SonarQube Quality Gate passed!
Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells
No Coverage information
No Duplication information
SQ Version 8.3.1 (build 34397), Jenkins Jenkins 2.231
The code I am submitting has errors which is picked up by SonarLint in my IDE.
Did SonarQube detect the changed code? If the issues already exist in the target branch, they won’t be shown for the pull request. A screenshot would help.