Skip to content

Commit

Permalink
Fixes #1855: validate:phpcs:files fails to find additional violations…
Browse files Browse the repository at this point in the history
… after an initial violation is found. (#1858)
  • Loading branch information
grasmash authored Jul 31, 2017
1 parent ec10824 commit cdd5e8a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Robo/Commands/Validate/PhpcsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ public function sniffFileList($file_list) {
$filtered_fileset = $fileset_manager->filterFilesByFileset($files, $fileset);
$filtered_fileset = iterator_to_array($filtered_fileset);
$files_in_fileset = array_keys($filtered_fileset);
$exit_code = $this->doSniffFileList($files_in_fileset);
if ($exit_code) {
return $exit_code;
$sniff_exit_code = $this->doSniffFileList($files_in_fileset);
// Allow sniffing of all files to continue before exiting.
if ($sniff_exit_code) {
$exit_code = $sniff_exit_code;
}
}
}
Expand Down

0 comments on commit cdd5e8a

Please sign in to comment.