aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/overview/formatting.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/formatting.js')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/formatting.js35
1 files changed, 34 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/formatting.js b/server/sonar-web/src/main/js/apps/overview/formatting.js
index 7a91cbcd5f1..5baa7d2f13f 100644
--- a/server/sonar-web/src/main/js/apps/overview/formatting.js
+++ b/server/sonar-web/src/main/js/apps/overview/formatting.js
@@ -12,7 +12,40 @@ const METRIC_TYPES = {
'sqale_index': 'SHORT_WORK_DUR',
'sqale_debt_ratio': 'PERCENT',
'sqale_rating': 'RATING',
- 'lines': 'SHORT_INT'
+ 'lines': 'SHORT_INT',
+
+ 'coverage': 'PERCENT',
+ 'line_coverage': 'PERCENT',
+ 'branch_coverage': 'PERCENT',
+ 'lines_to_cover': 'SHORT_INT',
+ 'conditions_to_cover': 'SHORT_INT',
+ 'uncovered_lines': 'SHORT_INT',
+ 'uncovered_conditions': 'SHORT_INT',
+
+ 'it_coverage': 'PERCENT',
+ 'it_line_coverage': 'PERCENT',
+ 'it_branch_coverage': 'PERCENT',
+ 'it_lines_to_cover': 'SHORT_INT',
+ 'it_conditions_to_cover': 'SHORT_INT',
+ 'it_uncovered_lines': 'SHORT_INT',
+ 'it_uncovered_conditions': 'SHORT_INT',
+
+ 'overall_coverage': 'PERCENT',
+ 'overall_line_coverage': 'PERCENT',
+ 'overall_branch_coverage': 'PERCENT',
+ 'overall_lines_to_cover': 'SHORT_INT',
+ 'overall_conditions_to_cover': 'SHORT_INT',
+ 'overall_uncovered_lines': 'SHORT_INT',
+ 'overall_uncovered_conditions': 'SHORT_INT',
+
+ 'tests': 'SHORT_INT',
+ 'skipped_tests': 'SHORT_INT',
+ 'test_errors': 'SHORT_INT',
+ 'test_failures': 'SHORT_INT',
+ 'test_execution_time': 'MILLISEC',
+ 'test_success_density': 'PERCENT',
+
+ 'complexity': 'INT'
};
export function formatMeasure (value, metric) {