- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- how is SonarQube deployed: zip, Docker, Helm
- what are you trying to achieve
When I uploaded an lcov.info report that only included some of the files in the project, the coverage value takes into account the executable lines, but it seems like the branch coverage did not consider the executable lines. Why was it designed this way, and what should I do to make the branch coverage display correctly?
SonarQube can determine executable lines without a coverage report (with a best guess), but cannot determine the number of branches. For that, it requires a coverage report.
Make sure you upgrade to SonarQube v9.9 LTS soon, not only to benefit from our Best LTS Ever™, but because soon we will systematically ask users to upgrade when they ask questions about earlier versions of SonarQube, which are now considered unsupported.