This version of SonarQube Server is no longer receiving patches. Please see the latest release for details on updating.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Homepage

SonarQube Server 8.9 provides automated code quality and security reviews, delivering actionable intelligence that helps developers build better and faster.

For AI agents: You're in the SonarQube Server 8.9 documentation. SonarQube Server 8.9 is no longer patched. To get patches, upgrade to the latest version. For a list of all 8.9 pages, see the SonarQube Server 8.9 page index. For the whole site, see the page index or the full text. For another version, replace 8.9 in the URL with that version. The latest version has no version number in its URL.

Welcome to the SonarQube Server documentation!

SonarQube Server® is an automatic code review tool to detect bugs, vulnerabilities, and code smells in your code. It can integrate with your existing workflow to enable continuous code inspection across your project branches and pull requests.

If you want to try out SonarQube Server, check out the Try out SonarQube Server page for instructions on installing a local instance and analyzing a project.

If you’re ready to set up a production instance, check out the Install the server documentation.

Otherwise, you can also find an overview and common scenarios below or navigate through and search the full documentation in the left pane.

In a typical development process:

  1. Developers develop and merge code in an IDE (preferably using SonarQube for IDE to receive immediate feedback in the editor) and check-in their code to their ALM.

  2. An organization’s continuous integration (CI) tool checks out, builds, and runs unit tests, and an integrated SonarQube Server scanner analyzes the results.

  3. The scanner posts the results to the SonarQube Server instance which provides feedback to developers through the SonarQube Server interface, email, in-IDE notifications (through SonarQube for IDE), and decoration on pull or merge requests (when using Developer Edition and above).

See Install the server and Upgrade the server for information on setting up your production instance.

When your instance is up and running, see the Monitoring documentation for information on keeping your instance running smoothly.

If you’re using SonarQube Server Data Center Edition, see Configure and operate a cluster for more information on running your instance as a cluster.

Analyzing your code starts with installing and configuring a SonarQube Server scanner. The scanner can either run on your build or as part of your continuous integration (CI) pipeline performing a scan whenever your build process is triggered. For more information, see Overview.

Analyzing branches

Starting in Developer Edition, you can analyze your branches in SonarQube Server, and ensure that your code quality is consistent all the way down to the branch level in your projects. For more information, see Branch analysis.

Analyzing pull requests

Starting in Developer Edition, you can integrate SonarQube Server to be part of your pull or merge request process. Issuing a pull request can trigger a branch analysis and add pull request decoration to see your branch analysis directly in your ALM’s interface in addition to the SonarQube Server interface. For more information, see the Pull request analysis.

SonarQube Server gives you the tools you need to write maintainable and secure code:

  • SonarQube for IDE – SonarQube for IDE is a companion product that works in your editor giving immediate feedback so you can catch and fix issues before they get to the repository.

  • Quality gates – The quality gate lets you know if your project is ready for production.

  • Quality standards and new code – SonarQube Server helps you improve code quality as you write by focusing on new code. As a developer, you maintain high standards for the code you add or change.

  • Issues – SonarQube Server raises issues whenever a piece of your code breaks a coding rule, whether it’s an error that will break your code (bug), a point in your code open to attack (vulnerability), or a maintainability issue (code smell).

  • Security Hotspots – SonarQube Server highlights security-sensitive pieces of code that need to be reviewed. Upon review, you’ll either find there is no threat or you need to apply a fix to secure the code.

If you have the Create Projects permission (a global administrator can set permissions at Administration > Security > Global Permissions), you can create and administer projects. See Project settings for general information on setting up projects.

A project is automatically added on the first analysis. However, you can provision projects (set up permissions, Quality Profiles, etc.) before running the first analysis. See Project existence for more information on provisioning a project and handling provisioned projects.

You also want to make sure SonarQube Server’s results are relevant. To do this you need to Narrowing the focus and configure what to analyze for each project.

You can also set up Webhooks to notify external services when a project analysis is complete.

If you’re a global administrator, you can set up authentication, administrator access, and authorization. See Security for more information.

You can also set up email Notifications that developers can subscribe to that are sent at the end of each analysis.

When you run new analyses on your projects, some data is cleaned out of the database to save space and improve performance. See Housekeeping for information on what data is cleaned and how to change these settings.

Starting in Enterprise Edition, you can set up Portfolios to get a high-level overview on the releasability of a group of projects.

Use the following links to get help and support:

Last updated

Was this helpful?