SonarQube house keeping

Hi,

We are using SonarQube 7.3 community edition with MSSQL database and we are planning to upgrade it to SonarQube 7.9 LTS enterprise edition but the problem is the license we have is for only 10M lines of code and our existing sonar is have 12M lines of code.

Is there a way to cleanup without loosing the existing projects, also want to know the codes of same repo from different branches count as different/additional lines?

Thanks!
Prabha

Hi Prabha,

If you want to decrease your LOC, you’re going to loose something. Your choices are:

Since in Community Edition you’re analyzing them as separate projects, then yes. Once you’ve transformed them into branches under a project in a commercial edition, then no. However, you will lose history in this transformation. There’s no way to tell SonarQube to turn a standalone project into a branch of another project. You’ll need to delete the standalone branch project and then re-create/re-analyze it under the main branch of the project.

 
HTH,
Ann

Thanks for the response Ann, this is really helpful.