components-web-app /
api-components-bundle
| 1 | <?php |
||
| 2 | |||
| 3 | /* |
||
| 4 | * This file is part of the Silverback API Components Bundle Project |
||
| 5 | * |
||
| 6 | * (c) Daniel West <[email protected]> |
||
| 7 | * |
||
| 8 | * For the full copyright and license information, please view the LICENSE |
||
| 9 | * file that was distributed with this source code. |
||
| 10 | */ |
||
| 11 | |||
| 12 | declare(strict_types=1); |
||
| 13 | |||
| 14 | $header = <<<'HEADER' |
||
| 15 | This file is part of the Silverback API Components Bundle Project |
||
| 16 | |||
| 17 | (c) Daniel West <[email protected]> |
||
| 18 | |||
| 19 | For the full copyright and license information, please view the LICENSE |
||
| 20 | file that was distributed with this source code. |
||
| 21 | HEADER; |
||
| 22 | |||
| 23 | $finder = PhpCsFixer\Finder::create() |
||
|
0 ignored issues
–
show
|
|||
| 24 | ->in(__DIR__) |
||
| 25 | ->exclude('tests/Functional/app/var') |
||
| 26 | ->append([ |
||
| 27 | 'tests/Functional/app/bin/console', |
||
| 28 | ]); |
||
| 29 | |||
| 30 | return (new PhpCsFixer\Config()) |
||
|
0 ignored issues
–
show
The type
PhpCsFixer\Config was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 31 | ->setRiskyAllowed(true) |
||
| 32 | ->setRules([ |
||
| 33 | '@DoctrineAnnotation' => true, |
||
| 34 | '@PHP73Migration' => true, |
||
| 35 | '@PHP71Migration:risky' => true, |
||
| 36 | '@PHPUnit60Migration:risky' => true, |
||
| 37 | '@Symfony' => true, |
||
| 38 | '@Symfony:risky' => true, |
||
| 39 | 'align_multiline_comment' => [ |
||
| 40 | 'comment_type' => 'phpdocs_like', |
||
| 41 | ], |
||
| 42 | 'array_indentation' => true, |
||
| 43 | 'array_syntax' => [ |
||
| 44 | 'syntax' => 'short', |
||
| 45 | ], |
||
| 46 | 'comment_to_phpdoc' => true, |
||
| 47 | 'compact_nullable_typehint' => true, |
||
| 48 | 'concat_space' => [ |
||
| 49 | 'spacing' => 'one', |
||
| 50 | ], |
||
| 51 | 'doctrine_annotation_array_assignment' => [ |
||
| 52 | 'operator' => '=', |
||
| 53 | ], |
||
| 54 | 'doctrine_annotation_spaces' => [ |
||
| 55 | 'after_array_assignments_equals' => false, |
||
| 56 | 'before_array_assignments_equals' => false, |
||
| 57 | ], |
||
| 58 | 'explicit_indirect_variable' => true, |
||
| 59 | 'fully_qualified_strict_types' => true, |
||
| 60 | 'header_comment' => [ |
||
| 61 | 'header' => $header, |
||
| 62 | 'location' => 'after_open', |
||
| 63 | ], |
||
| 64 | 'logical_operators' => true, |
||
| 65 | 'multiline_comment_opening_closing' => true, |
||
| 66 | 'multiline_whitespace_before_semicolons' => [ |
||
| 67 | 'strategy' => 'no_multi_line', |
||
| 68 | ], |
||
| 69 | 'no_alternative_syntax' => true, |
||
| 70 | 'no_extra_blank_lines' => [ |
||
| 71 | 'tokens' => [ |
||
| 72 | 'break', |
||
| 73 | 'continue', |
||
| 74 | 'curly_brace_block', |
||
| 75 | 'extra', |
||
| 76 | 'parenthesis_brace_block', |
||
| 77 | 'return', |
||
| 78 | 'square_brace_block', |
||
| 79 | 'throw', |
||
| 80 | 'use', |
||
| 81 | ], |
||
| 82 | ], |
||
| 83 | 'no_superfluous_elseif' => true, |
||
| 84 | 'no_superfluous_phpdoc_tags' => [ |
||
| 85 | 'allow_mixed' => false, |
||
| 86 | ], |
||
| 87 | 'no_unset_cast' => true, |
||
| 88 | 'no_unset_on_property' => true, |
||
| 89 | 'no_useless_else' => true, |
||
| 90 | 'no_useless_return' => true, |
||
| 91 | 'ordered_imports' => [ |
||
| 92 | 'imports_order' => [ |
||
| 93 | 'class', |
||
| 94 | 'function', |
||
| 95 | 'const', |
||
| 96 | ], |
||
| 97 | 'sort_algorithm' => 'alpha', |
||
| 98 | ], |
||
| 99 | 'php_unit_method_casing' => [ |
||
| 100 | 'case' => 'snake_case', |
||
| 101 | ], |
||
| 102 | 'php_unit_set_up_tear_down_visibility' => true, |
||
| 103 | 'php_unit_test_annotation' => [ |
||
| 104 | 'style' => 'prefix', |
||
| 105 | ], |
||
| 106 | 'phpdoc_add_missing_param_annotation' => [ |
||
| 107 | 'only_untyped' => true, |
||
| 108 | ], |
||
| 109 | 'phpdoc_order' => true, |
||
| 110 | 'phpdoc_trim_consecutive_blank_line_separation' => true, |
||
| 111 | 'phpdoc_var_annotation_correct_order' => true, |
||
| 112 | 'return_assignment' => true, |
||
| 113 | 'strict_param' => true, |
||
| 114 | 'visibility_required' => [ |
||
| 115 | // Deprecation: Removed rootless configuration - what does that mean? https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.3.0/UPGRADE-v3.md#removed-rootless-configuration |
||
| 116 | 'elements' => [ |
||
| 117 | 'const', |
||
| 118 | 'method', |
||
| 119 | 'property', |
||
| 120 | ], |
||
| 121 | ], |
||
| 122 | 'void_return' => false, |
||
| 123 | 'method_argument_space' => [ |
||
| 124 | 'on_multiline' => 'ensure_fully_multiline', |
||
| 125 | ], |
||
| 126 | ]) |
||
| 127 | ->setFinder($finder); |
||
| 128 |
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