1 | <?php |
||
2 | |||
3 | $finder = (new PhpCsFixer\Finder()) |
||
4 | ->in([ |
||
5 | __DIR__ . '/src', |
||
6 | __DIR__ . '/tests', |
||
7 | ]); |
||
8 | |||
9 | return (new PhpCsFixer\Config()) |
||
10 | ->setFinder($finder) |
||
11 | ->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect()) |
||
0 ignored issues
–
show
|
|||
12 | ->setRiskyAllowed(true) |
||
13 | ->setRules([ |
||
14 | '@PhpCsFixer' => true, |
||
15 | 'phpdoc_param_order' => true, |
||
16 | 'cast_spaces' => ['space' => 'none'], |
||
17 | 'trailing_comma_in_multiline' => true, |
||
18 | 'blank_line_after_opening_tag' => false, |
||
19 | 'array_indentation' => true, |
||
20 | 'void_return' => true, |
||
21 | 'trim_array_spaces' => true, |
||
22 | 'yoda_style' => ['identical' => false], |
||
23 | 'phpdoc_add_missing_param_annotation' => true, |
||
24 | 'no_empty_comment' => true, |
||
25 | 'no_superfluous_phpdoc_tags' => [ |
||
26 | 'allow_mixed' => true, |
||
27 | 'allow_unused_params' => false, |
||
28 | 'allow_hidden_params' => false, |
||
29 | ], |
||
30 | 'multiline_whitespace_before_semicolons' => [ |
||
31 | 'strategy' => 'new_line_for_chained_calls' |
||
32 | ], |
||
33 | 'phpdoc_order_by_value' => [ |
||
34 | 'annotations' => [ |
||
35 | "covers", |
||
36 | "dataProvider", |
||
37 | "author", |
||
38 | "internal", |
||
39 | "property", |
||
40 | "throws", |
||
41 | "uses" |
||
42 | ] |
||
43 | ], |
||
44 | 'ordered_imports' => [ |
||
45 | 'sort_algorithm' => 'alpha', |
||
46 | 'imports_order' => [ |
||
47 | 'class', |
||
48 | 'const', |
||
49 | 'function', |
||
50 | ], |
||
51 | ], |
||
52 | 'class_attributes_separation' => [ |
||
53 | 'elements' => [ |
||
54 | 'const' => 'none', |
||
55 | 'method' => 'one', |
||
56 | 'property' => 'none', |
||
57 | 'trait_import' => 'one', |
||
58 | ], |
||
59 | ], |
||
60 | 'blank_line_before_statement' => [ |
||
61 | 'statements' => [ |
||
62 | 'break', |
||
63 | 'continue', |
||
64 | 'return', |
||
65 | 'throw', |
||
66 | 'try', |
||
67 | ], |
||
68 | ], |
||
69 | ]); |
||
70 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths