This version of the SonarQube documentation is no longer maintained. It relates to a version of SonarQube that is not active.

Introduction

Sonar analyzers calculate the different code metrics that will be used to evaluate the code quality.

The language analyzers calculate the different code metrics that will be used to evaluate the code quality:

  • Code metrics are used in Overview to raise issues, for example, when a certain level of complexity is reached for a function in the code.

  • Code metrics are used in the Quality gates definition. For example, you can set a condition on the total number of raised issues in the code.

You can use different tools in the SonarQube UI 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?