Skip to content

Commit

Permalink
fix(report): correct table column ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
marisademeglio committed Jan 22, 2018
1 parent 659e189 commit f93111f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ace-report/src/generate-html-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ module.exports = function generateHtmlReport(reportData) {
htmlStr += `<tr>
<td><span class='${violation['impact']}'>${violation['impact']}</span></td>
<td><span class='ruleset'>${rulesetTagLabels[violation['applicableRulesetTag']]}</span></td>
<td>${violation['rule']}<br/><br/><span class='engine'>${violation['engine']}</span></td>
<td><em>\"${violation['fileTitle']}\"<br/><br/><code class='location'>${violation['location']}</code>`;

if (violation.html) {
htmlStr +=`<br/><br/><div class='snippet'>Snippet:<code>${violation.html.trim()}</code></div>`;
}

htmlStr += "</td>";
htmlStr += `<td>${violation['rule']}<br/><br/><span class='engine'>${violation['engine']}</span></td>`;


var desc = violation["desc"];
desc = desc.replace("Fix all of the following:", "");
Expand Down

0 comments on commit f93111f

Please sign in to comment.