diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2016-05-13 10:53:49 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2016-05-13 13:41:38 +0200 |
commit | aa98472baece8f11b72600cf78f2b2f1234cd103 (patch) | |
tree | e5b5461f515d407ba8904d2b2f340eb55dba3307 /sonar-scanner-engine | |
parent | 3b2bc98247aaa157796b3af00de12b1b0119967c (diff) | |
download | sonarqube-aa98472baece8f11b72600cf78f2b2f1234cd103.tar.gz sonarqube-aa98472baece8f11b72600cf78f2b2f1234cd103.zip |
SONAR-6807 In the issues report, show the rule key
Diffstat (limited to 'sonar-scanner-engine')
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> + + + <img src="issuesreport_files/sep12.png"> + + <span class="rule_key">${issue.getRuleKey()}</span> + </div> <div class="discussionComment"> ${ruleNameProvider.nameForHTML(issue.getRuleKey())} @@ -429,6 +435,11 @@ ${issue.creationDate()?date} </#if> </span> + + + <img src="issuesreport_files/sep12.png"> + + <span class="rule_key">${issue.getRuleKey()}</span> </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; |