]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6807 In the issues report, show the rule key 970/head
authorJulien HENRY <julien.henry@sonarsource.com>
Fri, 13 May 2016 08:53:49 +0000 (10:53 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Fri, 13 May 2016 11:41:38 +0000 (13:41 +0200)
sonar-scanner-engine/src/main/resources/org/sonar/batch/scan/report/issuesreport.ftl
sonar-scanner-engine/src/main/resources/org/sonar/batch/scan/report/issuesreport_files/sonar.css

index c41b80672223818e7fd29f1f462a66c77a3830f9..e027da8cb2fbba989e8706babaa77fe14064ad53 100644 (file)
         <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">
         <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">
                     ${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())}
                                 ${issue.creationDate()?date}
                               </#if>
                             </span>
+                
+                                                               &nbsp;
+                                                               <img src="issuesreport_files/sep12.png">&nbsp;
+                                                               
+                                                               <span class="rule_key">${issue.getRuleKey()}</span>
                             &nbsp;
 
                           </div>
index 40e929cf07719596962dc0792e1c1f2942ef421c..2fe61b2277e9353af67bbdfb41303b419095d5c9 100644 (file)
@@ -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;