How do I free up LOC?

  1. Will deleting older analysis free up LOC or is this only tracked in the latest analysis?
  2. Is the only way to free up LOC is by deleting the Project?
  3. Is there an API call or some other way to list all analysis by their LOC?

hello Francis, I sent yon a direct email on this subject, thank you Eli

Thanks for your reply Eli. I have responded to your email. Appreciate the information you have provided and hope you have a wonderful week.

Hi Francis Worden III I have a similar question as above, can you please share the details here as well?
Thank you

Hi Vasu,
Deletion of a project is the only way to remove LOCs.

To view Project information (last scanned, LOCs being used, etc) log into SonarQube as the Service/Application Admin and select the “Administration” tab in the main header of the UI. From there you’ll want to select the “Projects” drop down list and select “Management”, from there you can select the “Last analysis before” field to search on projects who’s last analysis was before that date. We use this to identify projects that have not been analyzed in over a few years. From there you can open projects in new tabs to view LOCs they are using to determine your heavy hitters. I’m not sure if there is an easier way to get this information. You’d think there would be a built in report that would list all the project by number of LOC used and their last analysis date.

Hope this was helpful.