Skip to content

Commit 1f09de8

Browse files
authored
Merge pull request #7618 from codeigniter4/remove-precommit-hook
Remove PHPStan from pre-commit hook
2 parents 1e7204b + bd3420b commit 1f09de8

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

admin/pre-commit

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,6 @@ if [ "$STAGED_PHP_FILES" != "" ]; then
2020
done
2121
fi
2222

23-
if [ "$FILES" != "" ]; then
24-
echo "Running PHPStan..."
25-
26-
# Run on whole codebase
27-
if [ -d /proc/cygdrive ]; then
28-
XDEBUG_MODE=off ./vendor/bin/phpstan analyse
29-
else
30-
XDEBUG_MODE=off php ./vendor/bin/phpstan analyse
31-
fi
32-
33-
if [ $? != 0 ]; then
34-
echo "Fix the phpstan error(s) before commit."
35-
exit 1
36-
fi
37-
fi
38-
3923
if [ "$FILES" != "" ]; then
4024
echo "Running PHP CS Fixer..."
4125

0 commit comments

Comments
 (0)