Skip to content

Instantly share code, notes, and snippets.

@mcuyar
Created June 14, 2017 02:25
Show Gist options
  • Save mcuyar/29fc960e367747cededc3206664389eb to your computer and use it in GitHub Desktop.
Save mcuyar/29fc960e367747cededc3206664389eb to your computer and use it in GitHub Desktop.
PHP pre-commit config
- repo: [email protected]:pre-commit/pre-commit-hooks
sha: "20f04626a1ee7eb34955d775a37aa9a56a0a7448"
hooks:
- id: check-json
stages: [commit]
- id: check-merge-conflict
stages: [commit]
- id: check-yaml
stages: [commit]
- id: end-of-file-fixer
stages: [commit]
- id: trailing-whitespace
stages: [commit]
- id: detect-private-key
stages: [commit]
- id: detect-aws-credentials
stages: [commit]
- id: check-added-large-files
stages: [commit]
- repo: [email protected]:hootsuite/pre-commit-php.git
sha: "9a3b92d6e3368c74df50d84a877fd72a61ae1f9b"
hooks:
- id: php-lint-all
stages: [commit]
- id: php-unit
stages: [commit]
- id: php-cs
stages: [commit]
files: \.(php)$
args: ["--ignore=tests", "--standard=PSR2", "-p"]
- id: php-cbf
files: \.(php)$
args: ["--ignore=tests", "--standard=PSR2", "-p"]
- repo: git://github.com/Lucas-C/pre-commit-hooks
sha: "1e30aa4c88cefe2e65aca072fcb2347f43ace870"
hooks:
- id: remove-crlf
stages: [commit]
- id: remove-tabs
stages: [commit]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment