You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.php-cs-fixer.dist.php 840B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. declare(strict_types=1);
  3. require_once './vendor-bin/cs-fixer/vendor/autoload.php';
  4. use Nextcloud\CodingStandard\Config;
  5. $config = new Config();
  6. $config
  7. ->getFinder()
  8. ->ignoreVCSIgnored(true)
  9. ->exclude('config')
  10. ->exclude('data')
  11. ->notPath('3rdparty')
  12. ->notPath('build/integration/vendor')
  13. ->notPath('build/lib')
  14. ->notPath('build/node_modules')
  15. ->notPath('build/stubs')
  16. ->notPath('composer')
  17. ->notPath('node_modules')
  18. ->notPath('vendor')
  19. ->in(__DIR__);
  20. // Ignore additional app directories
  21. $rootDir = new \DirectoryIterator(__DIR__);
  22. foreach ($rootDir as $node) {
  23. if (str_starts_with($node->getFilename(), 'apps')) {
  24. $return = shell_exec('git check-ignore ' . escapeshellarg($node->getFilename() . '/'));
  25. if ($return !== null) {
  26. $config->getFinder()->exclude($node->getFilename());
  27. }
  28. }
  29. }
  30. return $config;