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.

26 lines
598 B

  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. require_once './vendor-bin/csfixer/vendor/autoload.php';
  8. use Nextcloud\CodingStandard\Config;
  9. use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
  10. $config = new Config();
  11. $config
  12. ->setParallelConfig(ParallelConfigFactory::detect())
  13. ->getFinder()
  14. ->ignoreVCSIgnored(true)
  15. ->notPath('build')
  16. ->notPath('l10n')
  17. ->notPath('src')
  18. ->notPath('lib/Vendor')
  19. ->notPath('vendor')
  20. ->notPath('vendor-bin')
  21. ->in(__DIR__);
  22. return $config;