mirror of https://github.com/nextcloud/server
Add pre-commit hook for cs-fix
Signed-off-by: Anna Larch <anna@nextcloud.com>
This commit is contained in:
parent
9e0a524a20
commit
911b7f09eb
|
@ -0,0 +1,17 @@
|
|||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.3.0
|
||||
hooks:
|
||||
- id: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
- id: check-added-large-files
|
||||
- repo: https://github.com/come-nc/pre-commit-php.git
|
||||
rev: 1.5.0
|
||||
hooks:
|
||||
- id: php-lint
|
||||
- id: php-cs-fixer
|
||||
files: \.(php)$
|
||||
exclude: ^(config|data|composer)
|
||||
args: []
|
Loading…
Reference in New Issue