We’re using SonarQube Enterprise Edition (version v2025.1.1) with Azure DevOps for analysis. According to the SonarQube documentation “( SonarQube Server Lines of Code | Documentation)”, the Lines of Code (LoC) limit should apply only to private projects. However, all our projects are public, and we’ve even moved previously private projects to public, yet the LoC is still being counted towards the license limit.
Additionally, when running analysis on one of our public projects, it’s being treated as a test project, resulting in no LoC details being displayed.
Could someone clarify:
Why are public projects contributing to the LoC count?
What settings should we check to ensure projects are classified correctly for LoC calculation?
I think we probably accidentally copy-pasted some info from the SonarQube Cloud docs.
In SonarQube Server – “public” means available to all users of your instance. “Private” means only certain users can see the projects. All projects count towards your license.
In SonarQube Cloud, “public” means anybody with access to the Internet can see your project and code, while “private” projects are only accessible to members of an org with the right permissions. Here, only private projects count towards a Team/Enterprise license.
We should remove the word “private” from the SonarQube Server docs. I will ping our Docs folks to update these docs!
Can you please create a new thread and share some more details – like what language(s) you’re analyzing, and where you see the project being treated as a test project (in the logs? In the UI?)