-
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
36 lines (33 loc) · 998 Bytes
/
.php-cs-fixer.dist.php
File metadata and controls
36 lines (33 loc) · 998 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
$finder = (new PhpCsFixer\Finder())
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
->notPath('Resources/config/')
;
return (new PhpCsFixer\Config())
->setRules([
'@PER-CS' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP85Migration' => true,
'@PHP8x5Migration:risky' => true,
'header_comment' => [
'header' => <<<'EOF'
This file is part of the ChamberOrchestra package.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF,
'location' => 'after_declare_strict',
'separate' => 'both',
],
'strict_param' => true,
'native_function_invocation' => [
'include' => ['@all'],
'scope' => 'namespaced',
'strict' => true,
],
'phpdoc_to_comment' => ['ignored_tags' => ['var']],
])
->setFinder($finder)
->setRiskyAllowed(true)
;