diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-10-25 15:07:11 +0300 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-10-25 15:07:39 +0300 |
commit | ed70e643cc74eeb297a9f74096bc252a342e16b3 (patch) | |
tree | ba1cd4cc7af281a773bd4cb7326f89d0e82bfbd5 | |
parent | d247123d1f569bc297c413e8093e7dc7cf66afa3 (diff) |
Backport pre-commit config from master
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | .pre-commit-config.yaml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000000..9ac3616066a --- /dev/null +++ b/.pre-commit-config.yaml @@ -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: [] |