Merge pull request #34802 from nextcloud/fix/backport-pre-commit-24

Add pre-commit configuration to stable24 as well
This commit is contained in:
Côme Chilliet 2022-10-25 17:25:38 +02:00 committed by GitHub
commit 684b3c5a3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

17
.pre-commit-config.yaml Normal file
View file

@ -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/nextcloud/pre-commit-php.git
rev: 1.5.1
hooks:
- id: php-lint
- id: php-cs-fixer
files: \.(php)$
exclude: ^(config|data|composer)
args: []

View file

@ -39,6 +39,7 @@ $expectedFiles = [
'.mailmap',
'.npmignore',
'.php-cs-fixer.dist.php',
'.pre-commit-config.yaml',
'.scrutinizer.yml',
'.tag',
'.tx',