...
Conditions on New Code apply to all branches and to Pull Requests.
Gold (code mature)
Metric |
---|
...
Operator | Value | |
---|---|---|
Test coverage | greater than | 80% |
Duplicated Lines | less than | 3% |
Maintainability Rating | equal | A |
Reliability Rating | equal | A |
Security Hotspots | equal | A |
Security Rating | equal | A |
Silver (in progress to mature project)
Metric |
---|
...
Operator | Value | |
---|---|---|
Test coverage | greater than | 60% |
Duplicated Lines | less than | 6% |
Maintainability Rating | greater than or equal to | B |
Reliability Rating | greater than or equal to | B |
Security Hotspots | equal | A |
Security Rating | equal | A |
Bronze (mature project not at all)
Metric |
---|
...
Operator | Value | |
---|---|---|
Test coverage | greater than | 55% |
Security Hotspots | equal | A |
Security Rating | equal | A |
source of metrics chapter https://docs.sonarqube.org/latest/user-guide/quality-gates/
...