aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2016-05-13 10:53:49 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2016-05-13 13:41:38 +0200
commitaa98472baece8f11b72600cf78f2b2f1234cd103 (patch)
treee5b5461f515d407ba8904d2b2f340eb55dba3307 /sonar-scanner-engine
parent3b2bc98247aaa157796b3af00de12b1b0119967c (diff)
downloadsonarqube-aa98472baece8f11b72600cf78f2b2f1234cd103.tar.gz
sonarqube-aa98472baece8f11b72600cf78f2b2f1234cd103.zip
SONAR-6807 In the issues report, show the rule key
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/main/resources/org/sonar/batch/scan/report/issuesreport.ftl15
-rw-r--r--sonar-scanner-engine/src/main/resources/org/sonar/batch/scan/report/issuesreport_files/sonar.css5
2 files changed, 18 insertions, 2 deletions
diff --git a/sonar-scanner-engine/src/main/resources/org/sonar/batch/scan/report/issuesreport.ftl b/sonar-scanner-engine/src/main/resources/org/sonar/batch/scan/report/issuesreport.ftl
index c41b8067222..e027da8cb2f 100644
--- a/sonar-scanner-engine/src/main/resources/org/sonar/batch/scan/report/issuesreport.ftl
+++ b/sonar-scanner-engine/src/main/resources/org/sonar/batch/scan/report/issuesreport.ftl
@@ -238,7 +238,7 @@
<td width="20">
<i class="icon-severity-${ruleReport.getSeverity()?lower_case}"></i>
</td>
- <td align="left">
+ <td align="left" title="${ruleReport.getRule().key()}">
${ruleNameProvider.nameForHTML(ruleReport.getRule())}
</td>
<td align="right">
@@ -327,7 +327,7 @@
<td width="20">
<i class="icon-severity-${ruleReport.getSeverity()?lower_case}"></i>
</td>
- <td align="left">
+ <td align="left" title="${ruleReport.getRule().key()}">
${ruleNameProvider.nameForHTML(ruleReport.getRule())}
</td>
<td align="right">
@@ -380,6 +380,12 @@
${issue.creationDate()?date}
</#if>
</span>
+
+ &nbsp;
+ <img src="issuesreport_files/sep12.png">&nbsp;
+
+ <span class="rule_key">${issue.getRuleKey()}</span>
+
</div>
<div class="discussionComment">
${ruleNameProvider.nameForHTML(issue.getRuleKey())}
@@ -429,6 +435,11 @@
${issue.creationDate()?date}
</#if>
</span>
+
+ &nbsp;
+ <img src="issuesreport_files/sep12.png">&nbsp;
+
+ <span class="rule_key">${issue.getRuleKey()}</span>
&nbsp;
</div>
diff --git a/sonar-scanner-engine/src/main/resources/org/sonar/batch/scan/report/issuesreport_files/sonar.css b/sonar-scanner-engine/src/main/resources/org/sonar/batch/scan/report/issuesreport_files/sonar.css
index 40e929cf077..2fe61b2277e 100644
--- a/sonar-scanner-engine/src/main/resources/org/sonar/batch/scan/report/issuesreport_files/sonar.css
+++ b/sonar-scanner-engine/src/main/resources/org/sonar/batch/scan/report/issuesreport_files/sonar.css
@@ -233,6 +233,11 @@ span.issue_date {
font-size: 90%;
}
+span.rule_key {
+ color: #777;
+ font-size: 90%;
+}
+
.sources td.line {
width: 100%;
border-right: 1px solid #DDD;