diff options
Diffstat (limited to '.php-cs-fixer.dist.php')
-rw-r--r-- | .php-cs-fixer.dist.php | 13 |
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; |