-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
36 lines (31 loc) · 906 Bytes
/
.php-cs-fixer.dist.php
File metadata and controls
36 lines (31 loc) · 906 Bytes
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
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
$finder = Finder::create()
->in(__DIR__)
->in(__DIR__ . '/tools/chorale/src/')
->exclude('build')
->exclude('docs')
->exclude('tools')
->exclude('vendor')
;
return (new Config())
->setUsingCache(true)
->setCacheFile(__DIR__ . '/build/cache/php-cs-fixer/php-cs-fixer.cache')
->setParallelConfig(ParallelConfigFactory::detect())
->setRules([
// Rule sets
'@PER-CS' => true,
'@PHP82Migration:risky' => true,
'@PHP83Migration' => true,
'@PHPUnit100Migration:risky' => true,
// Rules
'no_unused_imports' => true,
'ordered_imports' => true,
'heredoc_indentation' => false,
//'php_unit_test_class_requires_covers' => true,
])
->setFinder($finder)
;