pre-commit-php
pre-commit-php copied to clipboard
Pre-commit scripts appropriate for any PHP project. These hooks are made as custom plugins under the pre-commit git hook framework.
Please also consider directing people who land on this repo to a viable alternative, if you are aware of or comfortable endorsing one.
We have forked this project to [digitalpulp/pre-commit-php](https://github.com/digitalpulp/pre-commit-php) so that there is continued support for these hooks. We are very grateful to hootsuite for maintaining these for so long. #16 pre-commit/pre-commit.github.io#121...
I made this PR because the Pre-commit API changed and the hooks file was not found. Also Removed a previous conflict marker in the README.MD file
`pre-commit` configuration file has been updated, see: https://pre-commit.com/#plugins
Fixed a unused variable name to allow locally stored php-cs-fixer runs.
This fixes this warning in pre-commit 2.0: ``` [WARNING] [email protected]:hootsuite/pre-commit-php.git uses legacy hooks.yaml to provide hooks. In newer versions, this file is called .pre-commit-hooks.yaml This will work in this version...
Version `1.1.0` not contains the `php-cs-fixer` changes ``` [WARNING] [email protected]:hootsuite/pre-commit-php.git uses legacy hooks.yaml to provide hooks. In newer versions, this file is called .pre-commit-hooks.yaml This will work in this version...
The wrong environment variable is used
Using /usr/bin/env $interpreter in shebangs is the "proper" way to do it instead of using the absolute path to interpreters. It's very rare for /bin/bash to not exist, but it...
This PR implements the changes recommended in issue #16