tigitz /
php-spellchecker
| 1 | <?php |
||
| 2 | |||
| 3 | $finder = PhpCsFixer\Finder::create() |
||
|
0 ignored issues
–
show
|
|||
| 4 | ->in([__DIR__.'/src', __DIR__.'/tests']) |
||
| 5 | ; |
||
| 6 | |||
| 7 | return PhpCsFixer\Config::create() |
||
|
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...
|
|||
| 8 | ->setRules([ |
||
| 9 | '@PSR2' => true, |
||
| 10 | 'no_unused_imports' => true, |
||
| 11 | 'blank_line_before_statement' => true, |
||
| 12 | 'cast_spaces' => true, |
||
| 13 | 'comment_to_phpdoc' => true, |
||
| 14 | 'declare_strict_types' => true, |
||
| 15 | 'function_typehint_space' => true, |
||
| 16 | 'linebreak_after_opening_tag' => true, |
||
| 17 | 'list_syntax' => ['syntax' => 'short'], |
||
| 18 | 'lowercase_static_reference' => true, |
||
| 19 | 'lowercase_cast' => true, |
||
| 20 | 'method_chaining_indentation' => true, |
||
| 21 | 'native_function_casing' => true, |
||
| 22 | 'native_function_invocation' => ['include' => ['@compiler_optimized']], |
||
| 23 | 'new_with_braces' => true, |
||
| 24 | 'modernize_types_casting' => true, |
||
| 25 | 'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'], |
||
| 26 | 'no_empty_statement' => true, |
||
| 27 | 'no_extra_blank_lines' => true, |
||
| 28 | 'no_multiline_whitespace_around_double_arrow' => true, |
||
| 29 | 'no_singleline_whitespace_before_semicolons' => true, |
||
| 30 | 'object_operator_without_whitespace' => true, |
||
| 31 | 'ordered_class_elements' => true, |
||
| 32 | 'array_syntax' => ['syntax' => 'short'], |
||
| 33 | 'php_unit_dedicate_assert' => true, |
||
| 34 | 'php_unit_dedicate_assert_internal_type' => true, |
||
| 35 | 'php_unit_expectation' => true, |
||
| 36 | 'phpdoc_add_missing_param_annotation' => true, |
||
| 37 | 'phpdoc_annotation_without_dot' => true, |
||
| 38 | 'phpdoc_to_return_type' => true, |
||
| 39 | 'phpdoc_align' => ['align' => 'left'], |
||
| 40 | 'no_empty_phpdoc' => true, |
||
| 41 | 'phpdoc_indent' => true, |
||
| 42 | 'trim_array_spaces' => true, |
||
| 43 | 'phpdoc_no_empty_return' => true, |
||
| 44 | 'include' => true, |
||
| 45 | 'phpdoc_no_useless_inheritdoc' => true, |
||
| 46 | 'no_unneeded_control_parentheses' => ['break', 'clone', 'continue', 'return', 'switch_case', 'yield'], |
||
| 47 | 'no_leading_import_slash' => true, |
||
| 48 | 'phpdoc_order' => true, |
||
| 49 | 'phpdoc_return_self_reference' => true, |
||
| 50 | 'phpdoc_scalar' => true, |
||
| 51 | 'phpdoc_separation' => true, |
||
| 52 | 'phpdoc_single_line_var_spacing' => true, |
||
| 53 | 'phpdoc_summary' => true, |
||
| 54 | 'phpdoc_trim' => true, |
||
| 55 | 'phpdoc_types' => true, |
||
| 56 | 'phpdoc_types_order' => ['null_adjustment' => 'always_last'], |
||
| 57 | 'phpdoc_var_annotation_correct_order' => true, |
||
| 58 | // 'phpdoc_to_param_type' => false, |
||
| 59 | 'no_superfluous_phpdoc_tags' => ['allow_mixed' => true], |
||
| 60 | 'binary_operator_spaces' => true, |
||
| 61 | 'single_quote' => true, |
||
| 62 | 'semicolon_after_instruction' => true, |
||
| 63 | 'return_type_declaration' => true, |
||
| 64 | 'short_scalar_cast' => true, |
||
| 65 | 'single_blank_line_before_namespace' => true, |
||
| 66 | 'single_line_comment_style' => true, |
||
| 67 | 'psr4' => true, |
||
| 68 | 'class_attributes_separation' => ['elements' => ['method', 'property']], |
||
| 69 | 'space_after_semicolon' => true, |
||
| 70 | 'no_whitespace_in_blank_line' => true, |
||
| 71 | 'strict_comparison' => true, |
||
| 72 | 'ternary_operator_spaces' => true, |
||
| 73 | 'ternary_to_null_coalescing' => true, |
||
| 74 | 'unary_operator_spaces' => true, |
||
| 75 | 'whitespace_after_comma_in_array' => true, |
||
| 76 | ]) |
||
| 77 | ->setFinder($finder) |
||
| 78 | ; |
||
| 79 |
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