]> source.dussan.org Git - sonarqube.git/commitdiff
fix display of covered lines in source viewer's details
authorStas Vilchik <vilchiks@gmail.com>
Mon, 21 Mar 2016 09:45:01 +0000 (10:45 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 21 Mar 2016 13:18:29 +0000 (14:18 +0100)
server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js
server/sonar-web/src/main/js/components/source-viewer/templates/measures/_source-viewer-measures-coverage.hbs

index 1a933892f7672bfd09afa9cc79df228b1aeffb78..953a3e90f80039063bcb5997c0e22cfdf9ce1247 100644 (file)
@@ -123,7 +123,7 @@ export default ModalView.extend({
 
   calcAdditionalMeasures (measures) {
     if (measures.lines_to_cover && measures.uncovered_lines) {
-      measures.covered_lines = measures.lines_to_cover - measures.uncovered_lines;
+      measures.covered_lines = measures.lines_to_cover_raw - measures.uncovered_lines_raw;
     }
     if (measures.conditions_to_cover && measures.uncovered_conditions) {
       measures.covered_conditions = measures.conditions_to_cover - measures.uncovered_conditions;
index 72d2002690f97c059ae38f0af2c300bfc61121f1..026a3de53103dec2f7b128ebfd7b5acdc0cf2b7d 100644 (file)
@@ -22,7 +22,7 @@
         </div>
         <div class="measure measure-one-line" data-metric="lines_to_cover">
           <span class="measure-name">Lines</span>
-          <span class="measure-value">{{measures.covered_lines}}/{{measures.lines_to_cover}}</span>
+          <span class="measure-value">{{formatMeasure measures.covered_lines 'INT'}}/{{measures.lines_to_cover}}</span>
         </div>
         {{#if measures.conditions_to_cover}}
           <div class="measure measure-one-line" data-metric="conditions_to_cover">