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

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-12-29 17:19:36 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2020-12-29 17:23:58 +0300
commit8eb7310025dc24ddd379b36e0e94bab536f2216b (patch)
treed5ec402a46de2aad03df107b8d0c543d39b4bfb1 /.php_cs.dist
parent7adfc6ece487ff374a71cb7aae2fcbd603ff51a3 (diff)
Add PHP-CS
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to '.php_cs.dist')
-rw-r--r--.php_cs.dist19
1 files changed, 19 insertions, 0 deletions
diff --git a/.php_cs.dist b/.php_cs.dist
new file mode 100644
index 000000000..5cb475d5c
--- /dev/null
+++ b/.php_cs.dist
@@ -0,0 +1,19 @@
+<?php
+
+declare(strict_types=1);
+
+require_once './vendor/autoload.php';
+
+use Nextcloud\CodingStandard\Config;
+
+$config = new Config();
+$config
+ ->getFinder()
+ ->ignoreVCSIgnored(true)
+ ->notPath('build')
+ ->notPath('l10n')
+ ->notPath('lib/Vendor')
+ ->notPath('src')
+ ->notPath('vendor')
+ ->in(__DIR__);
+return $config;