Skip to content
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.

Introduction

Automated code review and analysis in SonarQube Server 2025.2 uses various code metrics to evaluate code quality.

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

Code metrics are used in:

  • Rules to raise issues, for example, when a certain level of complexity is reached for a function in the code. See Overview for more information.

  • Quality gate definition, for example, you can set a condition on the total number of raised issues in the code. See Introduction to quality gates for more information.

  • The mode of your SonarQube Server instance, either MQR mode or Standard Experience, will determine which code metrics you see in the UI.

You can use different tools in the SonarQube Server to monitor and compare your project or portfolio’s code metrics.

If you’re using an external monitoring system, you can retrieve the metric values through the Web API.

Last updated

Was this helpful?