-
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
34 lines (31 loc) · 1.2 KB
/
.php-cs-fixer.dist.php
File metadata and controls
34 lines (31 loc) · 1.2 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
<?php
declare(strict_types=1);
$finder = (new PhpCsFixer\Finder())
->in([__DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/bin', __DIR__ . '/samples'])
->name('*.php')
->name('arcp')
->ignoreDotFiles(true)
->ignoreVCS(true);
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@PSR12' => true,
'@PSR12:risky' => true,
'@PHP84Migration' => true,
'@PHP82Migration:risky' => true,
'declare_strict_types' => true,
'array_syntax' => ['syntax' => 'short'],
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced'],
'no_unused_imports' => true,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'single_quote' => true,
'trailing_comma_in_multiline' => true,
'phpdoc_align' => ['align' => 'left'],
'phpdoc_separation' => true,
'phpdoc_summary' => false,
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true, 'remove_inheritdoc' => true],
'visibility_required' => ['elements' => ['property', 'method', 'const']],
'final_class' => false,
'final_internal_class' => false,
])
->setFinder($finder);