Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Conditions on New Code apply to all branches and to Pull Requests.

Gold (code mature)

MetricOperatorValue
Test coveragegreater than80%
Duplicated Linesless than3%
Maintainability RatingequalA
Reliability RatingequalA
Security HotspotsequalA
Security RatingequalA

Silver (in progress to mature project)

MetricOperatorValue
Test coveragegreater than60%
Duplicated Linesless than6%
Maintainability Ratinggreater than
or equal to
B
Reliability Ratinggreater than
or equal to
B
Security HotspotsequalA
Security RatingequalA

Bronze (mature project not at all)

MetricOperatorValue
Test coveragegreater than55%
Security HotspotsequalA
Security RatingequalA


source of metrics chapter https://docs.sonarqube.org/latest/user-guide/quality-gates/

...