Skip to content
This version of the SonarQube documentation is no longer maintained. It relates to a version of SonarQube that is not active.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Project analysis setup

SonarQube Server 10.6 can perform analysis on 20+ different languages.

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

This page introduces briefly the prerequisites and the setup steps necessary for a project analysis.

For an overview of the analysis process, see SonarQube Server analysis overview.

Prerequisites and recommendations

SonarQube Server is integrated with your DevOps platform / CI tool

It is highly recommended that you integrate SonarQube Server with your DevOps platform or CI tool. See:

The SonarScanner is installed on the CI/CD host

Once the SonarQube Server has been installed, you’re ready to install a SonarQube Server analysis overview. You must install the scanner that is most appropriate for your needs depending on your build system: Gradle, Maven, .NET, NPM, or Python. For other project types, use the SonarScanner CLI which requires more manual configuration.

For installation requirements, see Scanner environment.

SCM integration used during the analysis will be automatically imported from Git and SVN. Other providers require additional plugins.

Creating your SonarQube Server project

Your project repository is represented in SonarQube Server by a project.

You can create your SonarQube Server project in the SonarQube Server UI before starting the first project analysis. Or you can start your first project analysis to automatically create the SonarQube Server project on the server (SonarQube Server creates automatically a new project if the received project key does not exist in its database).

To create a project, see Creating and importing projects.

Integrating SonarQube Server analysis into your CI or build pipeline

To integrate the SonarQube Server analysis into your CI pipeline, see the corresponding section:

To integrate the SonarQube Server analysis into your build pipeline, see the scanner invoking instructions in the corresponding section: SonarScanner for Maven, SonarScanner for Gradle, SonarScanner for .NET, SonarScanner CLI, Using the SonarScanner for NPM, SonarScanner for Python, or SonarScanner CLI.

Adjusting the analysis of your project

The analysis performed by the SonarScanner is configured through analysis parameters. The following applies:

  • A few analysis parameters are mandatory.

  • Many analysis parameters, such as those defining the analysis scope, have a default value and can be adjusted.

  • Analysis parameters allow you to include the code and test coverage in your analysis, or to import issues generated by a third-party analyzer, etc.

SonarQube Server manages the analysis parameters through sonar properties (The sonar property key has the following syntax: sonar.<property>.).

You can configure the analysis parameters in different places. For more information, see Analysis parameters and the respective SonarScanner section: SonarScanner for Maven, SonarScanner for Gradle, SonarScanner for .NET, SonarScanner CLI, Configuring the analysis parameters, and SonarScanner for Python.

You can:

Last updated

Was this helpful?