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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user