Skip to content

Commit

Permalink
Unfound code sniffer warns instead of fails
Browse files Browse the repository at this point in the history
  • Loading branch information
balsama committed Jan 20, 2017
1 parent c172f99 commit 1321b7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/git-hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ PHPCS_BIN=vendor/bin/phpcs

if [ ! -f $PHPCS_BIN ];
then
echo "PHP Code Sniffer was not found in this project's bin directory. Please run composer install. "
exit 1
echo "WARNING: PHP Code Sniffer was not found where we thought it should be. This commit may contain coding violations. "
exit 0
fi

echo "Sniffing staged files via PHP Code Sniffer..."
Expand Down

0 comments on commit 1321b7d

Please sign in to comment.