How many LOCs are we analysing?

Hi folks :wave:t3:

We are on Community Edition 8.9.6 and we need to know a couple of things about SonarQube.

  1. Is there a reporting functionality we could use to export analysis results of each and every branch? What formats are available?
  2. Which license covers that functionality?
  3. As an admin, how can I see the amount of LOCs being analysed by our instance? (for budgeting purposes in case we need to acquire a license).

I’d like to know the answer to these questions before getting in touch with sales so we can have a more productive discussion.

Thank you!

Hi,

:warning: Make sure you upgrade to SonarQube v9.9 LTS soon, not only to benefit from our Best LTS Ever™, but because soon we will systematically ask users to upgrade when they ask questions about earlier versions of SonarQube, which are now considered unsupported. :smiley:

There is no reporting in Community Edition, just the Web API (docs link in the page footer) from which you can craft your own reports.

Reporting starts in Enterprise Edition($$).

I think you’ll just have to add the LoC of each project. The Projects page will give you an approximate LoC for each project. If you need exact figures and/or you have a lot of projects, it may be easiest to script querying the API.

 
HTH,
Ann

Hi,

In addition to @ganncamp’s suggestion, if you don’t need details per project, you may want to look at the System page in the Administration panel. You should find there the total number of lines of code analyzed on your instance.

Chris

1 Like

Thank you kindly!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.