eclipxe13 /
php-soft-daemon
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | return (new PhpCsFixer\Config()) |
||
|
1 ignored issue
–
show
|
|||
| 6 | ->setRiskyAllowed(true) |
||
| 7 | ->setCacheFile(__DIR__ . '/build/php_cs.cache') |
||
| 8 | ->setRules([ |
||
| 9 | '@PSR2' => true, |
||
| 10 | '@PHP70Migration' => true, |
||
| 11 | '@PHP70Migration:risky' => true, |
||
| 12 | '@PHP71Migration' => true, |
||
| 13 | '@PHP71Migration:risky' => true, |
||
| 14 | // symfony |
||
| 15 | 'class_attributes_separation' => true, |
||
| 16 | 'whitespace_after_comma_in_array' => true, |
||
| 17 | 'no_empty_statement' => true, |
||
| 18 | 'no_extra_blank_lines' => true, |
||
| 19 | 'function_typehint_space' => true, |
||
| 20 | 'no_alias_functions' => true, |
||
| 21 | 'trailing_comma_in_multiline' => ['elements' => ['arrays']], |
||
| 22 | 'new_with_braces' => true, |
||
| 23 | 'no_blank_lines_after_class_opening' => true, |
||
| 24 | 'no_blank_lines_after_phpdoc' => true, |
||
| 25 | 'object_operator_without_whitespace' => true, |
||
| 26 | 'binary_operator_spaces' => true, |
||
| 27 | 'phpdoc_scalar' => true, |
||
| 28 | 'self_accessor' => true, |
||
| 29 | 'no_trailing_comma_in_singleline_array' => true, |
||
| 30 | 'single_quote' => true, |
||
| 31 | 'no_singleline_whitespace_before_semicolons' => true, |
||
| 32 | 'no_unused_imports' => true, |
||
| 33 | 'no_whitespace_in_blank_line' => true, |
||
| 34 | 'yoda_style' => ['equal' => true, 'identical' => true, 'less_and_greater' => null], |
||
| 35 | 'standardize_not_equals' => true, |
||
| 36 | // contrib |
||
| 37 | 'concat_space' => ['spacing' => 'one'], |
||
| 38 | 'not_operator_with_successor_space' => true, |
||
| 39 | 'single_blank_line_before_namespace' => true, |
||
| 40 | 'linebreak_after_opening_tag' => true, |
||
| 41 | 'blank_line_after_opening_tag' => true, |
||
| 42 | 'ordered_imports' => true, |
||
| 43 | 'array_syntax' => ['syntax' => 'short'], |
||
| 44 | ]) |
||
| 45 | ->setFinder( |
||
| 46 | PhpCsFixer\Finder::create() |
||
|
1 ignored issue
–
show
The type
PhpCsFixer\Finder 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...
|
|||
| 47 | ->in(__DIR__) |
||
| 48 | ->exclude(['vendor', 'tools', 'build']) |
||
| 49 | ) |
||
| 50 | ; |
||
| 51 |
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