[web-php] master: Fix: Run friendsofphp/php-cs-fixer on src/ and tests/ only (#934)
| From: | Andreas Möller via GitHub | Date: | Mon, 12 Feb 2024 17:24:38 +0000 |
| Subject: | [web-php] master: Fix: Run friendsofphp/php-cs-fixer on src/ and tests/ only (#934) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-31426@lists.php.net to get a copy of this message | ||
Author: Andreas Möller (localheinz)
Committer: GitHub (web-flow)
Pusher: saundefined
Date: 2024-02-12T20:10:51+03:00
Commit: https://github.com/php/web-php/commit/bdd0a1cef80775a56d68b92e88444c359270232f
Raw diff: https://github.com/php/web-php/commit/bdd0a1cef80775a56d68b92e88444c359270232f.diff
Fix: Run friendsofphp/php-cs-fixer on src/ and tests/ only (#934)
Changed paths:
M .php-cs-fixer.php
Diff:
diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php
index 67d241ec5e..c20f24b447 100644
--- a/.php-cs-fixer.php
+++ b/.php-cs-fixer.php
@@ -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)