UNIXDEV

SonarQube Enterprise: choosing an edition and a licence

Choosing between SonarQube Community Build, Developer, Enterprise, Data Center and Cloud, and how lines of code are counted for a licence quote.

By UNIXDEV Team · 13 min read
Original published · English edition

Diagram of four SonarQube tiers from Community Build to Data Center, beside a lines-of-code meter that sizes a per-instance licence

Organisations with several teams, more than one DevOps platform instance, legacy code such as COBOL or VB6, or a need for reports mapped to security standards should choose SonarQube Server™ Enterprise edition. A team that only needs branch and pull request analysis before merge is served by Developer edition. Data Center edition is needed when the service must keep running if a node fails.

SonarQube is SonarSource's platform for code quality and code security. It analyses source code statically, without running the program. Its central idea is the quality gate, which SonarSource's documentation defines as "a set of conditions against which the code is measured during analysis": the code passes or fails, and the team uses the result to decide whether to fix issues or merge. SonarQube can run on your own infrastructure (SonarQube Server and Community Build) or as a SaaS (SonarQube Cloud).

The product names changed on 29 October 2024, according to SonarSource's press release: SonarQube became SonarQube Server, SonarCloud became SonarQube Cloud, SonarLint became SonarQube for IDE, and SonarQube Community Edition became SonarQube Community Build. Many installation guides still use the old names; this article uses the new ones.

In short: (1) Community Build is free but analyses the main branch only. (2) Paid editions are licensed per instance, per year, by lines of code (LOC): each project counts its largest branch or pull request, excluding test code, comments and blank lines. (3) Advanced Security (SCA and Advanced SAST) is a separate subscription.

The cover shows the four self-managed tiers of SonarQube, from Community Build to Data Center, beside the LOC meter that sizes a paid licence.

SonarQube products: Community Build, Server and Cloud

SonarQube comes in two operating models: self-managed and SaaS. According to SonarSource's Server versus Cloud page, with SonarQube Server "you install, host, upgrade, back up, and secure the instance yourself (on-prem or in your own cloud)", and you control where the data lives. SonarQube Cloud is "fully hosted and operated by Sonar", with data in Sonar's cloud regions.

  • SonarQube Community Build is free and open source and self-managed. Its feature comparison table lists branch analysis as "Main branch only", with no pull request analysis, no quality gate status on pull requests and no detection of injection vulnerabilities (flaws where user input reaches a dangerous call, such as SQL injection). Custom quality profiles (the set of rules each language is checked against) and quality gates are included.
  • SonarQube Server is the paid self-managed product, in three editions, Developer, Enterprise and Data Center, according to the 2026.5 editions page. All are licensed per instance (one installation of SonarQube Server) per year based on LOC.
  • SonarQube Cloud is a subscription per organisation, billed monthly or yearly based on private LOC, with Free, Team and Enterprise plans. It suits teams that do not want to run a server and whose policy allows code and analysis results to sit with a cloud provider.

So the first question is not which edition but whether code and analysis results may leave your network. If they may not, the choice narrows to Community Build or SonarQube Server. Thai government agencies and regulated companies should check their own rules on where source code may be stored before comparing editions.

What Enterprise adds over Developer, and Data Center over Enterprise

Enterprise adds governance across many teams; the main difference in Data Center is a clustered deployment. SonarSource's editions page positions Developer for "Small teams / business units running a single instance", Enterprise for "Larger organizations with many teams and projects" with a focus on "Centralized governance, portfolios, compliance/security reporting", and Data Center for "Very large/mission-critical deployments needing High Availability (HA) and horizontal scale".

Capabilities that differ between editions, from the SonarQube Server 2026.5 editions page (Add-on = separate Advanced Security subscription)
CapabilityDeveloperEnterpriseData Center
Branch/PR analysis, injection detection, SAML SSOYesYesYes
Multiple DevOps platform instances and monorepo integrationNoYesYes
Portfolios, project and portfolio dashboardsNoYesYes
Compliance reports, regulatory reports and project PDF reportsNoYesYes
Audit logs and SCIM user auto-provisioningNoYesYes
Apex, COBOL, Gosu, JCL, MuleSoft DataWeave, PL/I, RPG and VB6NoYesYes
Clustered deployment for high availabilityNoNoYes
Advanced Security (SCA and Advanced SAST)NoAdd-onAdd-on

Terms in the table: SAML SSO is single sign-on through your organisation's identity provider; a monorepo is one repository that holds several projects; a portfolio tracks releasability and ratings across several projects; SCIM is the protocol an identity provider uses to create and manage SonarQube user accounts automatically; audit logs record security-related changes to the instance; and SCA (software composition analysis) checks the libraries a project uses for known vulnerabilities. Developer does have Applications, which aggregate several projects, but no portfolios.

One DevOps platform detail is worth checking early. The pricing page says Developer "Supports one integration each" for GitHub, GitLab, Bitbucket and Azure DevOps, while Enterprise can "Integrate with unlimited numbers of DevOps platforms". If you run two GitLab instances, for example one for the main organisation and one for outsourced projects, you need Enterprise or above.

For Data Center, the topology documentation describes two application nodes, three search nodes, a load balancer and a PostgreSQL, Oracle or Microsoft SQL Server database, where "one application node and one search node can be lost without impacting users". The documentation recommends one machine per node, so that is at least five machines to operate and upgrade, besides the load balancer and database. Data Center pays off when a SonarQube outage would actually stop several teams' pipelines from merging or deploying.

Which edition fits: a decision table

Choose by your strictest requirement: if any single row needs Enterprise, you need Enterprise even if every other row fits Developer. The table is UNIXDEV's engineering view, matching needs to capabilities in SonarSource's documentation.

Matching organisational needs to SonarQube options
If you…OptionReason from the documentation
Are trying it out, or analysing the main branch is enoughCommunity BuildFree; main branch only
Work through merge requests (GitLab's name for pull requests) and want results before mergeDeveloperBranch and pull request analysis, quality gate status on pull requests
Run more than one GitLab or GitHub instance, or use monoreposEnterpriseDeveloper lacks multiple DevOps platform instances and monorepo integration
Need to analyse COBOL, VB6, PL/I, RPG, JCL or ApexEnterpriseThese languages are Enterprise and Data Center only
Need portfolio-level views across teams for management, or reports against security standardsEnterprisePortfolios, compliance reports and regulatory reports start at Enterprise; Developer has Applications, which aggregate projects, but no portfolios
Need audit logs or user provisioning from an identity providerEnterpriseAudit logs and SCIM are not in Developer
Cannot tolerate SonarQube downtime because many teams' pipelines wait on itData CenterThe cluster tolerates losing a node
Cannot let code leave your networkCommunity Build or a Server editionSelf-managed, you choose where data lives; Cloud keeps data in Sonar's regions
Do not want to run a server, and policy allows SaaSSonarQube CloudOperated by SonarSource

Analysing COBOL or VB6 code is also a useful baseline before deciding whether to keep or modernise a legacy system; see keeping an unsupported legacy system running safely.

How the SonarQube Server licence is counted

Every paid edition is licensed per instance, per year, by the maximum LOC the instance may analyse. The pricing page defines an instance as "an installation of SonarQube Server", so a production server and a test server are two instances. The same page publishes no Server prices and asks you to contact sales.

The 2026.5 lines-of-code documentation sets three counting rules:

  1. Each project counts its largest branch or pull request, from the most recent analysis. The documentation warns that "The largest branch or pull request is not always the main branch."
  2. Excluded: test code, files excluded from analysis, code in unsupported languages, and comments or blank lines.
  3. The instance total is the sum over projects. The documentation's example: Project1 has 500 lines on main and 400 on another branch, so it counts 500; Project2 has nothing on main and 200 on another branch, so it counts 200; the total is 700.

When the total would exceed the licence, the same page says the instance "will reject any analysis whose total lines of code exceed the limit", while browsing projects and saving configuration still work. In a pipeline where the quality gate blocks merges, that means the team's work stalls. Enterprise and Data Center instances with online licence activation and continuous connectivity to SonarSource's licensing service can turn on LOC overage, which keeps analysing beyond the limit without waiting for a licence upgrade.

SonarQube Server can run on a closed network: SonarSource's plans page lists "Air-gapped deployment options available". For a server on a closed network, the licence administration documentation provides offline activation for instances that cannot reach SonarSource's licensing endpoint, and states that "An instance activated offline is never eligible for overage." If you choose a closed network, size the licence with more room than an online-activated instance would need.

What to collect before you ask for a quote

The price depends on the edition, the LOC tier and the number of instances. Having these numbers ready gives a quote that matches real use and makes a mid-term licence extension less likely.

  1. The repositories to analyse, grouped into projects as they will appear in SonarQube.
  2. The LOC of each repository's largest branch, not just main, without test code and files you will exclude from analysis (generated code counts unless you exclude it). If you already have a SonarQube Server, such as a trial instance, a user with the Administer System permission can call the Web API endpoint api/projects/license_usage to list each project's counted branch and LOC. Community Build results only reflect the main branch, and if your code includes languages Community Build does not analyse, such as C, C++, PL/SQL or COBOL (see the editions page), those are not counted, so the figure understates what an edition that supports them would count.
  3. The languages in use, especially COBOL, VB6, PL/I, RPG, JCL, Apex, Gosu or MuleSoft DataWeave, which need Enterprise or above.
  4. The number of DevOps platform instances: how many self-managed GitLab servers, how many GitHub or Bitbucket instances, and whether you use monorepos.
  5. The total number of instances, including any test or staging server. The pricing page says testing and staging environments use "additional licenses", and the licence administration page says a staging licence "is available in Enterprise and Data Center editions, or in editions with commercial support".
  6. Whether you need high availability. If so, specify Data Center and plan machines for the cluster topology.
  7. Online or offline activation, which decides whether LOC overage is available.
  8. Whether you need Advanced Security, which is a separate subscription.
  9. The support level you want. The pricing page says Base Support is included with every plan and commercial support can be added.
  10. Growth headroom, which you set from your own plans for the licence year, such as new systems to be built or existing systems to be brought into analysis.

For Thai government agencies that budget an annual licence alongside system maintenance (MA), next-year budgeting after the warranty period ends is covered in our guide to Thai government IT procurement and e-GP, the government's electronic procurement system.

Using SonarQube reports as acceptance evidence

SonarQube reports can support an acceptance decision, but they are not a certificate that a system is secure. Compliance reports, "available starting in Enterprise edition", map findings to standards such as the OWASP Top 10, OWASP ASVS, the CWE Top 25 and PCI DSS, and can be downloaded as PDF for projects and applications. A regulatory report is a ZIP snapshot of a branch's most recent analysis with its quality gate status, ratings and the distribution of issues in new and overall code.

The documentation states the limit a reviewer needs to know: "if there are no rules corresponding to a given OWASP category activated in your quality profile, you will not get issues linked to that specific category". An empty category may mean it was not checked.

In practice, the contract or terms of reference (TOR, the specification in a Thai public tender) should name the quality profile and quality gate used on the delivered branch, and ask the vendor for that branch's regulatory report at each milestone. That branch must be set as a permanent branch (Keep when inactive): the regulatory report documentation says a report can be downloaded only for that kind of branch. Reviewers treat the report as evidence alongside code review and testing, not as a pass or fail on its own.

How UNIXDEV can help

UNIXDEV sells SonarQube Server licences in the Developer, Enterprise and Data Center editions, installs SonarQube Server in your environment, and integrates it with CI such as GitLab CI or Jenkins as part of our DevOps and SRE work. With your team we estimate LOC and choose the edition using the list above, set the quality profile and quality gate to the criteria you agree, and plan upgrades and backups for the server. The details are on our SonarQube Server page.

For a quote, send your repository list with estimated LOC, the languages in use, the number of DevOps platform instances and the number of instances you need through our proposal request page.

Status as of 4 December 2026

Editions, languages and licence terms change with releases and SonarSource policy. Check the source pages before using these details in your own documents.

Details to re-check (checked 4 Dec 2026)
ItemStatus per sourceSource
LTA releaseSonarQube Server 2026.5 LTA announced generally available on 29 Sep 2026; the LTA page named 2026.5 as the LTA on the date checked. The previous LTA stays active for up to 6 months after a new LTA ships; Enterprise and Data Center customers with Enterprise Support may receive patches for an additional 6 months per the patch policy.Press release · LTA
Editions and licensingDeveloper, Enterprise, Data Center; per instance per year based on LOC; no published pricesEditions 2026.5 · Pricing
Recommended size and language countsPricing page: Developer "Recommended for 100K+ lines of code", 40 languages & frameworks; Enterprise "Recommended for 1M+ lines of code", 48 total languages & frameworksPricing
Enterprise and Data Center only languagesApex, COBOL, Gosu, JCL, MuleSoft DataWeave, PL/I, RPG, VB6Editions 2026.5
Standards in compliance reportsOWASP Top 10 (2025, 2021, 2017), OWASP Mobile Top 10 2024, CWE Top 25 (2024 to 2021), CASA, OWASP ASVS (5.0 and 4.0, levels 1 to 3), OWASP MASVS, OWASP Top 10 for LLM Applications 2025, PCI DSS (4.0, 3.2.1), STIG ASD (V6, V5), EU Cyber Resilience Act, MISRA C++:2023, WCAG 2.0/2.1/2.2Compliance reports 2026.5
Advanced SecuritySCA and Advanced SAST share one Advanced Security subscription, not included in any editionEditions 2026.5
LOC overage and staging licencesOverage on Enterprise and Data Center with online activation and continuous connectivity to the licensing service; staging licence in Enterprise and Data Center, or editions with commercial supportLines of code · Licence administration
SupportBase Support included with every plan; "Standard commercial support available"; the Enterprise column adds "24/7 premium commercial support available"Pricing

Sources and further reading

SonarQube Server™, SonarQube Cloud™ and SonarQube for IDE™ are trademarks of SonarSource SA. The products described in this article are SonarSource software, not UNIXDEV products.

Sources checked on 2026-12-04

How we checked: based on the primary sources above, reviewed by the UNIXDEV team

Continue reading