I am using community edition of Sonarqube (Version 6.7.4) and have been utilising the (now deprecated) ‘sonar.branch’ property for some time when scanning different branches of the same source code. I would like to use ‘sonar.branch.name’ property which requires purchase of Enterprise Edition. The concern I have is that the current total lines of code in the database is showing as over 37 million but as this feels like a very high number to me, I’m wondering whether (because we are using the deprecated branch property) the lines of code count is artificially inflated and in fact it would require a much lower licence level when utilising the Enterprise Edition combined with the ‘sonar.branch.name’ property. Can anyone shed any light on that concern? Or is it as straight forward as whatever my current lines of code total is, that is what I will need to pay for in the Enterprise Edition?
sonar.branch projects, you’re right that they’re artificially inflating your LOC count. You’ll need to delete those projects at some point since you won’t be able to “merge” them into their main projects even after you move to a commercial edition and the ability to use
sonar.branch.name. Whether you do that deletion now, during your commercial evaluation period or after you upgrade is really going to be a question of convenience, logistics, and discussion with your sales rep.
BTW, that deletion can be managed easily from Administration > Projects > Management. You’ll search there for the project key of the main project, and all of the extra projects created with
sonar.branch will show up too. From there you can do a bulk delete (being careful not to delete the original! )
That’s exactly what I was looking for, many thanks