Hi Duarte,
Yes, the project is actively worked on and the main branch is analyzed a few times per week.
Current figures (June 15, see screenshot and API response below): lines to cover: 29,320, uncovered lines: 497. So calculated coverage is 98,3% but Sonar reports 97,8%.
Condition coverage is wrong too by the way: conditions to cover: 3,997, uncovered conditions 1,012. So calculated condition coverage is 74,7%. Sonar reports 82,2%.
On new code, the line coverage is correct (706 - 10) / 706 x 100% = 98,6%. But the condition coverage is way off: (52 - 17) / 52 x 100% = 67,3%. Sonar reports 83,3%. Which is a weird number because 43 / 52 x 100% = 83,0% and 44 / 52 x 100% = 84,6% so there’s no way to get 83,3% with 52 conditions to cover.

The UI and the API are consistent. http://sonar.example.org/api/measures/component?component=backend&metricKeys=lines_to_cover,uncovered_lines,line_coverage,conditions_to_cover,uncovered_conditions,branch_coverage
returns:
{
"component": {
"key": "backend",
"name": "backend",
"qualifier": "TRK",
"measures": [
{
"metric": "line_coverage",
"value": "97.8",
"bestValue": false
},
{
"metric": "lines_to_cover",
"value": "29320"
},
{
"metric": "uncovered_conditions",
"value": "1012",
"bestValue": false
},
{
"metric": "conditions_to_cover",
"value": "3997"
},
{
"metric": "branch_coverage",
"value": "82.2",
"bestValue": false
},
{
"metric": "uncovered_lines",
"value": "497",
"bestValue": false
}
]
}
}
Cheers, Frank