*/
package org.sonar.batch.scan.report;
-import org.sonar.batch.issue.tracking.TrackedIssue;
-
-import org.sonar.api.batch.rule.Rule;
import com.google.common.collect.Maps;
-import org.sonar.api.rules.RulePriority;
-import org.sonar.batch.index.BatchComponent;
-
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
+import org.sonar.api.batch.rule.Rule;
+import org.sonar.api.rules.RulePriority;
+import org.sonar.batch.index.BatchComponent;
+import org.sonar.batch.issue.tracking.TrackedIssue;
public final class ResourceReport {
private final BatchComponent resource;
return resource.resource().getName();
}
+ public String getKey() {
+ return resource.inputComponent().key();
+ }
+
public String getType() {
return resource.resource().getScope();
}
<tr class="total">
<th align="left" colspan="2" nowrap>
<div class="file_title">
- <img src="issuesreport_files/${resourceReport.getType()}.png" title="Resource icon"/>
+ <img src="issuesreport_files/${resourceReport.getType()}.png" title="${resourceReport.getKey()}"/>
<a href="#" onclick="$('.resource-details-${resourceReport_index?c}').toggleClass('masked'); return false;" style="color: black">${resourceReport.getName()}</a>
</div>
</th>