Must-share information (formatted with Markdown):
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
8.3 Sonarqube Enterprise
what are you trying to achieve
Pull request analysis integrating GitHub
what have you tried so far to achieve this
We are able to decorate the pull request and see the code change on sonar dashboard.
But failed because of code coverage is always 0% even after few lines of code change in PR,
We are configures sonar analysis for multi languages(java, sql, python) in repo.
sonar-scanner -Dsonar.sourceEncoding=UTF-8 \ -Dsonar.projectKey=reponame \ -Dsonar.host.url=https://sonarqube.com/sonar/ \ -Dsonar.login=$SONAR_TOKEN \ -Dsonar.java.binaries=. \ -Dsonar.java.libraries=. \ -Dsonar.pullrequest.key=GIT_PR_ID \ -Dsonar.pullrequest.branch=GIT_PR_SOURCE_BRANCH \ -Dsonar.pullrequest.base=GIT_PR_TARGET_BRANCH \ -Dsonar.pullrequest.github.repository=repo/path \ -Dsonar.scm.revision=GIT_PR_COMMIT
## QUALITY GATE STATUS Conditions on New Code ### Failed ## FAILED CONDITION 0.0% Coverage on New Codeis less than 80.0% ## MEASURES New Bugs Reliability[A] New Vulnerabilities Security[A]  Security Review[A] New Code Smells Maintainability[A] [0.0%]Coverage on  New Lines to cover 0.0%Estimated after merge [0.0%]Duplications on New Lines