-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php-cs-fixer.dist.php
33 lines (30 loc) · 1.07 KB
/
.php-cs-fixer.dist.php
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);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->append([__FILE__])
->notPath('tests/Cache/Configuration/Fixtures/subscriptions.php')
;
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setUsingCache(true)
->setRules([
'@PHP81Migration' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'attribute_empty_parentheses' => true,
'declare_strict_types' => true,
'heredoc_to_nowdoc' => true,
'no_superfluous_phpdoc_tags' => true,
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
'protected_to_private' => true,
'self_static_accessor' => true,
'single_line_throw' => false,
'trailing_comma_in_multiline' => [
'elements' => ['arguments', 'array_destructuring', 'arrays', 'match', 'parameters'],
],
'whitespace_after_comma_in_array' => ['ensure_single_space' => true],
])
->setRiskyAllowed(true)
->setFinder($finder)
;