Skip to content

Commit

Permalink
Dev: Exit check scipt with 1 if any warnings/errors are found
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Apr 17, 2018
1 parent ec5ae2b commit 95e2d51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/rulesets/run_checkers.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@
$output = array_merge($phpmd_output, $phpcs_output, $psalm_output);

echo implode(PHP_EOL, $output);

exit (count($output) == 0 ? 0 : 1);

0 comments on commit 95e2d51

Please sign in to comment.