Skip to content

Commit bdd0a1c

Browse files
authored
Fix: Run friendsofphp/php-cs-fixer on src/ and tests/ only (#934)
1 parent ff36297 commit bdd0a1c

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.php-cs-fixer.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,11 @@
66

77
$finder = $config->getFinder()
88
->ignoreDotFiles(false)
9-
->in(__DIR__)
10-
->exclude('manual/en/')
11-
->name('*.inc')
12-
->name('.php-cs-fixer.php')
13-
->notPath('include/last_updated.inc')
14-
->notPath('include/pregen-confs.inc')
15-
->notPath('include/pregen-news.inc')
16-
->notPath('include/releases.inc')
17-
->notPath('include/version.inc')
18-
->notPath('tests/run-tests.php');
9+
->in([
10+
__DIR__ . '/src',
11+
__DIR__ . '/tests',
12+
])
13+
->notName('run-tests.php');
1914

2015
$config
2116
->setRiskyAllowed(true)

0 commit comments

Comments
 (0)