diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-11-01 14:13:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-01 14:13:39 +0100 |
commit | 5da7c8f3f1ffc2975e1fdeef86d414230fe490d0 (patch) | |
tree | 392d154f5ad56c2e84d455085204077cefbca3aa /server/sonar-web/src/main/js/helpers | |
parent | f52dd8d40f02f8112dd9fe791681f412b200903b (diff) | |
download | sonarqube-5da7c8f3f1ffc2975e1fdeef86d414230fe490d0.tar.gz sonarqube-5da7c8f3f1ffc2975e1fdeef86d414230fe490d0.zip |
SONAR-8326 Drop all code related to IT/overall coverage on web side (#1348)
Diffstat (limited to 'server/sonar-web/src/main/js/helpers')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/measures.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/server/sonar-web/src/main/js/helpers/measures.js b/server/sonar-web/src/main/js/helpers/measures.js index 8473c9e49ed..14cbd630c3a 100644 --- a/server/sonar-web/src/main/js/helpers/measures.js +++ b/server/sonar-web/src/main/js/helpers/measures.js @@ -113,25 +113,6 @@ export function isDiffMetric (metricKey) { return metricKey.indexOf('new_') === 0; } -/** - * Check all types of coverage and return most suitable one - * @param {Array} measures - * @returns {string} - */ -export function selectCoverageMetric (measures) { - const hasOverallCoverage = !!measures.find(measure => measure.metric === 'overall_coverage'); - const hasUTCoverage = !!measures.find(measure => measure.metric === 'coverage'); - const hasITCoverage = !!measures.find(measure => measure.metric === 'it_coverage'); - - if (hasOverallCoverage && hasUTCoverage && hasITCoverage) { - return 'overall_'; - } else if (hasITCoverage) { - return 'it_'; - } else { - return ''; - } -} - /* * Helpers */ |