Skip to content

Commit

Permalink
Fixes issue philmander#14
Browse files Browse the repository at this point in the history
philmander#14 was reported by me.
I specified the code change in a comment and then decided to try to fix
it.
  • Loading branch information
ojintoad committed Sep 6, 2013
1 parent ede60c0 commit be4df69
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ public String createReport() {
if (report.getTotalErrors() > 0) {
output.append("----------------------------------------------------------------------\n");
for(JsHintResult result : report.getResults()) {
output.append("\n");
output.append(getFileFailureMessage((result.getFile()) + "\n"));
for(JsHintError error : result.getErrors()) {
output.append(getIssueMessage(error.getReason(), error.getEvidence(), error.getLine(), error.getCharacter()) + "\n");
if(result.getNumErrors() > 0) {
output.append("\n");
output.append(getFileFailureMessage((result.getFile()) + "\n"));
for(JsHintError error : result.getErrors()) {
output.append(getIssueMessage(error.getReason(), error.getEvidence(), error.getLine(), error.getCharacter()) + "\n");
}
}

}
output.append("----------------------------------------------------------------------\n");
}
Expand Down

0 comments on commit be4df69

Please sign in to comment.