From aa98472baece8f11b72600cf78f2b2f1234cd103 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Fri, 13 May 2016 10:53:49 +0200 Subject: [PATCH] SONAR-6807 In the issues report, show the rule key --- .../org/sonar/batch/scan/report/issuesreport.ftl | 15 +++++++++++++-- .../scan/report/issuesreport_files/sonar.css | 5 +++++ 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 @@ - + ${ruleNameProvider.nameForHTML(ruleReport.getRule())} @@ -327,7 +327,7 @@ - + ${ruleNameProvider.nameForHTML(ruleReport.getRule())} @@ -380,6 +380,12 @@ ${issue.creationDate()?date} + +   +   + + ${issue.getRuleKey()} +
${ruleNameProvider.nameForHTML(issue.getRuleKey())} @@ -429,6 +435,11 @@ ${issue.creationDate()?date} + +   +   + + ${issue.getRuleKey()}  
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; -- 2.39.5