Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-09-29 19:41:23 +0300
committerGitHub <noreply@github.com>2022-09-29 19:41:23 +0300
commit396949705912d1d88c615fb95f3e822ce009b660 (patch)
tree7af3219808f932253dfcc1ffecf0f9f85d8f70e8
parentb4708fb9f003a306edcfe0346e25f9583c4c162a (diff)
parentf0df9ddf8538bf8fcc0c79cb68f5e153c9c328c5 (diff)
Merge pull request #33984 from nextcloud/enh/add-pre-commit-config-for-cs-fixer
Add pre commit config for cs fixer, EOF checks, etc
-rw-r--r--.pre-commit-config.yaml17
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: []