Skip to content

Commit

Permalink
Re-added the code that skips files with no messages for the new XMLWr…
Browse files Browse the repository at this point in the history
…iter code
  • Loading branch information
gsherwood committed Jan 25, 2012
2 parents 494aaa4 + 777e1f2 commit c0db31f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CodeSniffer/Reports/Checkstyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ public function generate(

$errorsShown = 0;
foreach ($report['files'] as $filename => $file) {
if (count($file['messages']) === 0) {
continue;
}

$out->startElement('file');
$out->writeAttribute('name', $filename);

Expand Down

0 comments on commit c0db31f

Please sign in to comment.