From: Jeremy Davis Date: Fri, 6 Mar 2020 13:33:47 +0000 (+0100) Subject: SONAR-13131 Add Security Review Rating explanation tooltip X-Git-Tag: 8.3.0.34182~149 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d4723451db83f291826b2f09f3f16f9cbc64d411;p=sonarqube.git SONAR-13131 Add Security Review Rating explanation tooltip --- diff --git a/server/sonar-web/src/main/js/components/measure/utils.ts b/server/sonar-web/src/main/js/components/measure/utils.ts index 4a05659fc13..6d07dcb1b05 100644 --- a/server/sonar-web/src/main/js/components/measure/utils.ts +++ b/server/sonar-web/src/main/js/components/measure/utils.ts @@ -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.MeasureEnhanced { diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index 0ed6ae378b6..07412ac6da5 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -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