Skip to content

Commit 5aad124

Browse files
authored
Merge pull request #35078 from nextcloud/backport/34802/stable25
[stable25] Add pre-commit configuration
2 parents 1cae227 + 4cf7304 commit 5aad124

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.3.0
6+
hooks:
7+
- id: end-of-file-fixer
8+
- id: check-yaml
9+
- id: check-added-large-files
10+
- repo: https://github.com/nextcloud/pre-commit-php.git
11+
rev: 1.5.1
12+
hooks:
13+
- id: php-lint
14+
- id: php-cs-fixer
15+
files: \.(php)$
16+
exclude: ^(config|data|composer)
17+
args: []

build/files-checker.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
'.mailmap',
4040
'.npmignore',
4141
'.php-cs-fixer.dist.php',
42+
'.pre-commit-config.yaml',
4243
'.scrutinizer.yml',
4344
'.tag',
4445
'.tx',

0 commit comments

Comments
 (0)