Just wanted to bump this topic to see if there was any update:
We are experiencing the same issue.
Just wanted to bump this topic to see if there was any update:
We are experiencing the same issue.
If a ‘test’ branch has many more LOC than the main branch, It would be helpful to be able to see the true LOC for each project so we can reduce our total LOC.
Update: using the sonar webapi, after adding up the LOC for the largest branches the LOC is still much lower than the reported LOC. Is there anything else that could contribute to LOC?
Hi,
You don’t mention your version. In current versions there’s a Web API (api/projects/license_usage
) that will give you the License LoC for each project and which branch is being counted.
HTH,
Ann
Thanks Ann, that endpoint gave us the right number.