aboutsummaryrefslogtreecommitdiffstats
path: root/.php-cs-fixer.dist.php
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-01-06 14:19:06 +0100
committerCarl Schwan <carl@carlschwan.eu>2022-01-06 14:42:37 +0100
commit47c9c34cca22602fb609de6c0e1d32ec17a9e7fe (patch)
treed467879562a4286df5ade88403702038898b4b97 /.php-cs-fixer.dist.php
parent63a9bc2aacf829563ac74abe29d4edf6ff31b8b1 (diff)
downloadnextcloud-server-47c9c34cca22602fb609de6c0e1d32ec17a9e7fe.tar.gz
nextcloud-server-47c9c34cca22602fb609de6c0e1d32ec17a9e7fe.zip
Fix psalm not running
The issue was that we were using psalm/phar instead of vimeo/psalm. This caused issue with the custom psalm plugin in buildd/psalm. This is using the opportunity to also update the psalm version from 3.8 to 3.17 and the php-cs-fixer too. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to '.php-cs-fixer.dist.php')
-rw-r--r--.php-cs-fixer.dist.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php
new file mode 100644
index 00000000000..fe6d31065f4
--- /dev/null
+++ b/.php-cs-fixer.dist.php
@@ -0,0 +1,24 @@
+<?php
+
+declare(strict_types=1);
+
+require_once './vendor-bin/cs-fixer/vendor/autoload.php';
+
+use Nextcloud\CodingStandard\Config;
+
+$config = new Config();
+$config
+ ->getFinder()
+ ->ignoreVCSIgnored(true)
+ ->exclude('config')
+ ->exclude('data')
+ ->notPath('3rdparty')
+ ->notPath('build/integration/vendor')
+ ->notPath('build/lib')
+ ->notPath('build/node_modules')
+ ->notPath('build/stubs')
+ ->notPath('composer')
+ ->notPath('node_modules')
+ ->notPath('vendor')
+ ->in(__DIR__);
+return $config;