Hi, can I use any API to check the overall (multiple) project’s Lines of Code😅. Please provide me with the parameter!!
I am using this API right now to check for a single project …
/api/measures/component?metricKeys=ncloc&component=project-name
Hi, can I use any API to check the overall (multiple) project’s Lines of Code😅. Please provide me with the parameter!!
I am using this API right now to check for a single project …
/api/measures/component?metricKeys=ncloc&component=project-name
Hi,
You don’t mention whether you’re using SonarQube Community Build or SonarQube Server. In commercial editions, we count the largest branch of each project for License LOC, so you would need to iterate across projects, and for each project, iterate across branches to find the largest one. For exactly what calls to make, tried the UI. The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.
You may also find this guide helpful.
HTH,
Ann
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.