I’m using an tool to automatically fetch the NCLOC value of a project using SonarQube’s WebAPI (/api/measures/search_history?component=$COMPONENT_NAME&metrics=ncloc)
Enterprise Edition
Version 9.9.1 (build 69595)
What my tool does is simply iterate through a list of previously saved project-keys and fetch their NCLOC value using the endpoint mentioned above, adding the details into a csv file. However, I’ve stumbled upon a doubt…
Question: Does the endpoint above return the ncloc of the component’s master branch or the project’s ncloc that’s accounted for in the license?