From 104fddc83923a501ef2c8b6de0d0e5d55768bb4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Thu, 1 Feb 2024 09:38:44 +0100 Subject: [PATCH] Fix: Run friendsofphp/php-cs-fixer on src/ and tests/ only --- .php-cs-fixer.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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)