1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Fix: Run friendsofphp/php-cs-fixer on src/ and tests/ only (#934)

This commit is contained in:
Andreas Möller
2024-02-12 18:10:51 +01:00
committed by GitHub
parent ff36297eef
commit bdd0a1cef8

View File

@@ -6,16 +6,11 @@ $config = new PhpCsFixer\Config();
$finder = $config->getFinder()
->ignoreDotFiles(false)
->in(__DIR__)
->exclude('manual/en/')
->name('*.inc')
->name('.php-cs-fixer.php')
->notPath('include/last_updated.inc')
->notPath('include/pregen-confs.inc')
->notPath('include/pregen-news.inc')
->notPath('include/releases.inc')
->notPath('include/version.inc')
->notPath('tests/run-tests.php');
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->notName('run-tests.php');
$config
->setRiskyAllowed(true)