]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-13131 Add Security Review Rating explanation tooltip
authorJeremy Davis <jeremy.davis@sonarsource.com>
Fri, 6 Mar 2020 13:33:47 +0000 (14:33 +0100)
committersonartech <sonartech@sonarsource.com>
Mon, 9 Mar 2020 20:04:22 +0000 (20:04 +0000)
server/sonar-web/src/main/js/components/measure/utils.ts
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index 4a05659fc130390d7d87096a0b39146cabd754ed..6d07dcb1b05415b86d42bed2cc1ae4b0ae0c43ec 100644 (file)
@@ -24,7 +24,8 @@ const KNOWN_RATINGS = [
   'sqale_rating',
   'maintainability_rating', // Needed to provide the label for "new_maintainability_rating"
   'reliability_rating',
-  'security_rating'
+  'security_rating',
+  'security_review_rating'
 ];
 
 export function enhanceMeasure(measure: T.Measure, metrics: T.Dict<T.Metric>): T.MeasureEnhanced {
index 0ed6ae378b65c717b7c77b3b663d6b19d51844ca..07412ac6da5037f3ea7292df5c03299db654b991 100644 (file)
@@ -2257,6 +2257,11 @@ metric.security_remediation_effort.extra_short_name=Remediation Effort
 metric.security_review_rating.description=Security Review Rating
 metric.security_review_rating.name=Security Review Rating
 metric.security_review_rating.extra_short_name=Rating
+metric.security_review_rating.tooltip.A=Security rating is A when at least 80% of Security Hotspots are reviewed.
+metric.security_review_rating.tooltip.B=Security rating is B when less than 80% of Security Hotspots are reviewed.
+metric.security_review_rating.tooltip.C=Security rating is C when less than 70% of Security Hotspots are reviewed.
+metric.security_review_rating.tooltip.D=Security rating is D when less than 50% of Security Hotspots are reviewed.
+metric.security_review_rating.tooltip.E=Security rating is E when less than 30% of Security Hotspots are reviewed.
 metric.skipped_tests.description=Number of skipped unit tests
 metric.skipped_tests.name=Skipped Unit Tests
 metric.skipped_tests.short_name=Skipped