Latest | Instance administration | Global analysis setup | Code metrics
Setting up metrics-related parameters
You can modify some parameters related to the maintainability metrics at the global level in the SonarQube Server UI, provided you have the Administer system permission. Alternatively, you can set the corresponding sonar property on the CI/CD host (see Analysis parameters).
Changing the software development cost calculation
The development cost of one line of code is used in the Technical debt ratio calculation. To change the default value:
- In the top navigation bar of SonarQube Server, select Administration > Configuration > General settings > Technical Debt.
- In Development cost, change the values (in minutes).
The corresponding sonar property is sonar.technicalDebt.developmentCost
.
Changing the maintainability rating grid
To change the default Maintainability rating grid:
- In the top navigation bar of SonarQube Server, select Administration > Configuration > General settings > Technical Debt.
- In Maintainability rating grid, change the rating definition.
The corresponding sonar property is sonar.technicalDebt.ratingGrid
.
Was this page helpful?