Created
September 7, 2017 17:08
-
-
Save ssx/fdb1bd4d12fb0372730836ae45fff74b to your computer and use it in GitHub Desktop.
PHP Pre-Commit Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- repo: https://github.com/digitalpulp/pre-commit-php.git | |
sha: 1.3.0 | |
hooks: | |
- id: php-lint | |
- id: php-unit | |
- id: php-cbf | |
files: \.(php)$ | |
args: [--standard=PSR2 --ignore=**/*.blade.php -p] | |
- id: php-cs | |
files: \.(php)$ | |
args: [--standard=PSR2 --ignore=**/*.blade.php -p] | |
- repo: git://github.com/pre-commit/pre-commit-hooks.git | |
sha: v0.9.2 | |
hooks: | |
- id: trailing-whitespace | |
- id: detect-private-key | |
- id: end-of-file-fixer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment