mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #34802 from nextcloud/fix/backport-pre-commit-24
Add pre-commit configuration to stable24 as well
This commit is contained in:
commit
684b3c5a3b
2 changed files with 18 additions and 0 deletions
17
.pre-commit-config.yaml
Normal file
17
.pre-commit-config.yaml
Normal 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: []
|
||||
|
|
@ -39,6 +39,7 @@ $expectedFiles = [
|
|||
'.mailmap',
|
||||
'.npmignore',
|
||||
'.php-cs-fixer.dist.php',
|
||||
'.pre-commit-config.yaml',
|
||||
'.scrutinizer.yml',
|
||||
'.tag',
|
||||
'.tx',
|
||||
|
|
|
|||
Loading…
Reference in a new issue