-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
33 lines (29 loc) 路 971 Bytes
/
Copy path.php-cs-fixer.dist.php
File metadata and controls
33 lines (29 loc) 路 971 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
<?php
declare(strict_types=1);
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
$finder = (new PhpCsFixer\Finder())
->in('src')
->in('tests')
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setParallelConfig(ParallelConfigFactory::detect())
->setFinder($finder)
->setRules([
'@PER-CS3x0' => true,
'@PER-CS3x0:risky' => true,
'@PHP8x2Migration' => true,
'@PHP8x2Migration:risky' => true,
'@PHPUnit10x0Migration:risky' => true,
'class_attributes_separation' => true,
'declare_strict_types' => true,
'final_internal_class' => true,
'fully_qualified_strict_types' => true,
'native_function_invocation' => ['include' => ['@internal']],
'no_superfluous_phpdoc_tags' => ['remove_inheritdoc' => true],
'no_unused_imports' => true,
'ordered_imports' => true,
'phpdoc_trim' => true,
'void_return' => true,
])
;