Prevents git push when linters aren't passing tests.
curl -o .git/hooks/pre-commit https://raw.githubusercontent.com/aramean/git-hook-drupal-lint/main/pre-commit && chmod 777 .git/hooks/pre-commit
rm -fr .git/hooks/pre-commit
git commit
- 0 to Disable
- 1 to Enable
- "path to binary" to override drupal vendor path
# PHP Lint
PHP_BIN=1
# Code Sniffer
PHPCS_BIN=1
# PHP Stan
PHPSTAN_BIN=1