This is a set of PHP hooks for pre-commit framework.
PHP hooks provided are:
If you use Docker, don't need to install anything and skip this section.
phpmd executable. To install it, please read
https://packagist.org/packages/phpmd/phpmd.To use PHP hooks, add the following code block to your .pre-commit-config.yaml:
- repo: https://gitlab.com/daverona/pre-commit/php
rev: 0.6.0 # use the most recent version
hooks:
# Hooks using native
- id: phpmd # static analyzer for PHP code
# Hooks using Docker
- id: docker-phpmd # phpmd in Docker container
You don't need to use non-docker version hook and its corresponding docker version at the same time. For instance, if you use
docker-phpmdhook,phpmdhook is not required (andphpmdexecutable is not required to be installed).
Content type
Image
Digest
Size
9.1 MB
Last updated
about 6 years ago
docker pull daverona/pre-commit-php