Introduction

SonarQube’s automated code review and analysis uses various code metrics to evaluate code quality.

Code metrics reflect quantifiable qualities of your project. They can be used in quality gate definitions (for example, to set a condition on the total number of raised issues in the code). See Understanding 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?