-
-
Notifications
You must be signed in to change notification settings - Fork 478
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
43 lines (37 loc) · 1.09 KB
/
.php-cs-fixer.php
File metadata and controls
43 lines (37 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
$header = <<<EOF
This file is part of Packagist.
(c) Jordi Boggiano <j.boggiano@seld.be>
Nils Adermann <naderman@naderman.de>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
$finder = PhpCsFixer\Finder::create()
->files()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
->name('*.php')
->notPath('Fixtures')
->notPath('Search/results')
;
$config = new PhpCsFixer\Config();
return $config
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRules([
'@PHP84Migration' => true,
'@PHPUnit100Migration:risky' => true,
'@PER-CS' => true,
'@PER-CS:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
// overrides
'blank_line_after_opening_tag' => false,
'linebreak_after_opening_tag' => false,
'yoda_style' => false,
'phpdoc_summary' => false,
'increment_style' => false,
])
->setUsingCache(true)
->setRiskyAllowed(true)
->setFinder($finder)
;