summaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-06-19 18:19:45 +0600
committerStas Vilchik <vilchiks@gmail.com>2014-06-19 18:52:26 +0600
commit0699bd08464de1f080051ee93aff1d5a5c0cbead (patch)
treeb9a1ef47bb5d95fd53af411d6c9a8b15cddeb8c2 /sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee
parente6a79a3f8da7bd3351aade2e9fb8a4f57c9fabe6 (diff)
downloadsonarqube-0699bd08464de1f080051ee93aff1d5a5c0cbead.tar.gz
sonarqube-0699bd08464de1f080051ee93aff1d5a5c0cbead.zip
SONAR-5209 Handle corner cases
Diffstat (limited to 'sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee')
-rw-r--r--sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee10
1 files changed, 8 insertions, 2 deletions
diff --git a/sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee b/sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee
index b60f4ca27be..eb3fdcd007a 100644
--- a/sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee
+++ b/sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee
@@ -61,7 +61,10 @@ define [
@sourceView.resetShowBlocks()
issues.forEach (issue) =>
line = issue.line || 0
- @sourceView.addShowBlock line - LINES_AROUND_ISSUE, line + LINES_AROUND_ISSUE, line == 0
+ if issue.resolution == 'FIXED' || issue.resolution == 'REMOVED'
+ @sourceView.addShowBlock 0, 0, true
+ else
+ @sourceView.addShowBlock line - LINES_AROUND_ISSUE, line + LINES_AROUND_ISSUE, line == 0
@sourceView.render()
@@ -86,7 +89,10 @@ define [
issues.forEach (issue) =>
if predicate issue
line = issue.line || 0
- @sourceView.addShowBlock line - LINES_AROUND_ISSUE, line + LINES_AROUND_ISSUE, line == 0
+ if issue.resolution == 'FIXED' || issue.resolution == 'REMOVED'
+ @sourceView.addShowBlock 0, 0, true
+ else
+ @sourceView.addShowBlock line - LINES_AROUND_ISSUE, line + LINES_AROUND_ISSUE, line == 0
activeIssues.push issue
@source.set 'activeIssues', activeIssues
@sourceView.render()