summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2023-08-21 17:09:20 +0200
committerGitHub <noreply@github.com>2023-08-21 17:09:20 +0200
commit919b055f337a07fe5a786236f294e923bb1baf80 (patch)
tree69c76f0f3bd9d5c82a251d1e50da8cc331680423
parent4c2c53e2716a2a946ad7ec574833e3c9837819bf (diff)
parentcc551acaaaadaa56516ce8774afc3f7495e61d85 (diff)
downloadnextcloud-server-919b055f337a07fe5a786236f294e923bb1baf80.tar.gz
nextcloud-server-919b055f337a07fe5a786236f294e923bb1baf80.zip
Merge pull request #39989 from nextcloud/techdebt/noid/bump-coding-style
fix(CS): Ignore apps*/ directories which are gitignored
-rw-r--r--.php-cs-fixer.dist.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php
index fe6d31065f4..2058f8d0d65 100644
--- a/.php-cs-fixer.dist.php
+++ b/.php-cs-fixer.dist.php
@@ -21,4 +21,17 @@ $config
->notPath('node_modules')
->notPath('vendor')
->in(__DIR__);
+
+// Ignore additional app directories
+$rootDir = new \DirectoryIterator(__DIR__);
+foreach ($rootDir as $node) {
+ if (str_starts_with($node->getFilename(), 'apps')) {
+ $return = shell_exec('git check-ignore ' . escapeshellarg($node->getFilename() . '/'));
+
+ if ($return !== null) {
+ $config->getFinder()->exclude($node->getFilename());
+ }
+ }
+}
+
return $config;