Skip to content

Commit

Permalink
chore: remove php-stan from the precommit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed Jun 26, 2023
1 parent 02bc22c commit 6dab47e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions admin/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,6 @@ if [ "$STAGED_PHP_FILES" != "" ]; then
done
fi

if [ "$FILES" != "" ]; then
echo "Running PHPStan..."

# Run on whole codebase
if [ -d /proc/cygdrive ]; then
XDEBUG_MODE=off ./vendor/bin/phpstan analyse
else
XDEBUG_MODE=off php ./vendor/bin/phpstan analyse
fi

if [ $? != 0 ]; then
echo "Fix the phpstan error(s) before commit."
exit 1
fi
fi

if [ "$FILES" != "" ]; then
echo "Running PHP CS Fixer..."

Expand Down

0 comments on commit 6dab47e

Please sign in to comment.