diff options
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/ratings.js')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/ratings.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/helpers/ratings.js b/server/sonar-web/src/main/js/helpers/ratings.js index 1d8347316d8..3c6d110676e 100644 --- a/server/sonar-web/src/main/js/helpers/ratings.js +++ b/server/sonar-web/src/main/js/helpers/ratings.js @@ -26,20 +26,20 @@ const checkNumberRating = coverageRating => { export const getCoverageRatingLabel = rating => { checkNumberRating(rating); - const mapping = ['< 30%', '30–50%', '50–70%', '70–80%', '> 80%']; + const mapping = ['> 80%', '< 80%', '< 70%', '< 50%', '< 30%']; return mapping[rating - 1]; }; export const getCoverageRatingAverageValue = rating => { checkNumberRating(rating); - const mapping = [15, 40, 60, 75, 90]; + const mapping = [90, 75, 60, 40, 15]; return mapping[rating - 1]; }; export const getDuplicationsRatingLabel = rating => { checkNumberRating(rating); - const mapping = ['< 3%', '3–5%', '5–10%', '10–20%', '> 20%']; + const mapping = ['< 3%', '> 3%', '> 5%', '> 10%', '> 20%']; return mapping[rating - 1]; }; @@ -52,7 +52,7 @@ export const getDuplicationsRatingAverageValue = rating => { export const getSizeRatingLabel = rating => { checkNumberRating(rating); - const mapping = ['< 1k', '1k–10k', '10k–100k', '100k–500k', '> 500k']; + const mapping = ['< 1k', '> 1k', '> 10k', '> 100k', '> 500k']; return mapping[rating - 1]; }; |