Skip to content

Commit

Permalink
Fix: Run friendsofphp/php-cs-fixer on src/ and tests/ only (#934)
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored Feb 12, 2024
1 parent ff36297 commit bdd0a1c
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@

$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)
Expand Down

0 comments on commit bdd0a1c

Please sign in to comment.