-
Notifications
You must be signed in to change notification settings - Fork 179
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
44 lines (41 loc) · 1.48 KB
/
.php-cs-fixer.dist.php
File metadata and controls
44 lines (41 loc) · 1.48 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
35
36
37
38
39
40
41
42
43
44
<?php
declare(strict_types=1);
$finder = \PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude([
'vendor',
])
;
return (new \PhpCsFixer\Config())
->setRules([
'@PER-CS3x0' => true,
'@PER-CS3x0:risky' => true,
'@PHPUnit100Migration:risky' => true,
'declare_strict_types' => true,
'linebreak_after_opening_tag' => true,
'ordered_imports' => true,
'no_empty_phpdoc' => true,
'no_unused_imports' => true,
'no_useless_return' => true,
'return_assignment' => true,
'simplified_null_return' => true,
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_indent' => true,
'phpdoc_no_access' => true,
'phpdoc_no_empty_return' => true,
'phpdoc_order_by_value' => true,
'phpdoc_order' => true,
'phpdoc_param_order' => true,
'phpdoc_separation' => ['skip_unlisted_annotations' => false],
'phpdoc_trim_consecutive_blank_line_separation' => true,
'phpdoc_trim' => true,
'phpdoc_types' => true,
'phpdoc_types_no_duplicates' => true,
'phpdoc_var_annotation_correct_order' => true,
'phpdoc_var_without_name' => true,
'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['arguments', 'arrays']], // Remove this rule after dropping support for PHP 7.4
])
->setFinder($finder)
->setRiskyAllowed(true)
;