|
16 | 16 | ->in(__DIR__.'/tests') |
17 | 17 | ->name('*.php') |
18 | 18 | ->notPath('Fixtures') |
| 19 | + ->notPath('Search/results') |
19 | 20 | ; |
20 | 21 |
|
21 | 22 | $config = new PhpCsFixer\Config(); |
22 | | -return $config->setRules([ |
23 | | - '@PSR2' => true, |
24 | | - 'binary_operator_spaces' => true, |
25 | | - 'blank_line_before_statement' => ['statements' => ['declare', 'return']], |
26 | | - 'cast_spaces' => ['space' => 'single'], |
27 | | - 'header_comment' => ['header' => $header], |
28 | | - 'include' => true, |
29 | | - |
30 | | - 'class_attributes_separation' => ['elements' => ['method' => 'one', 'trait_import' => 'none']], |
31 | | - 'no_blank_lines_after_class_opening' => true, |
32 | | - 'no_blank_lines_after_phpdoc' => true, |
33 | | - 'no_empty_statement' => true, |
34 | | - 'no_extra_blank_lines' => true, |
35 | | - 'no_leading_namespace_whitespace' => true, |
36 | | - 'no_trailing_comma_in_singleline' => true, |
37 | | - 'no_whitespace_in_blank_line' => true, |
38 | | - 'object_operator_without_whitespace' => true, |
39 | | - //'phpdoc_align' => true, |
40 | | - 'phpdoc_indent' => true, |
41 | | - 'no_empty_comment' => true, |
42 | | - 'no_empty_phpdoc' => true, |
43 | | - 'phpdoc_no_access' => true, |
44 | | - 'phpdoc_no_package' => true, |
45 | | - //'phpdoc_order' => true, |
46 | | - 'phpdoc_scalar' => true, |
47 | | - 'phpdoc_trim' => true, |
48 | | - 'phpdoc_types' => true, |
49 | | - 'psr_autoloading' => true, |
50 | | - 'blank_lines_before_namespace' => true, |
51 | | - 'standardize_not_equals' => true, |
52 | | - 'ternary_operator_spaces' => true, |
53 | | - 'trailing_comma_in_multiline' => ['elements' => ['arrays']], |
54 | | - 'unary_operator_spaces' => true, |
55 | | - |
56 | | - // imports |
57 | | - 'no_unused_imports' => true, |
58 | | - 'fully_qualified_strict_types' => true, |
59 | | - 'single_line_after_imports' => true, |
60 | | - //'global_namespace_import' => ['import_classes' => true], |
61 | | - 'no_leading_import_slash' => true, |
62 | | - 'single_import_per_statement' => true, |
63 | | - |
64 | | - // PHP 7.2 migration |
65 | | - 'array_syntax' => true, |
66 | | - 'list_syntax' => true, |
67 | | - 'regular_callable_call' => true, |
68 | | - 'static_lambda' => true, |
69 | | - 'nullable_type_declaration_for_default_null_value' => true, |
70 | | - 'explicit_indirect_variable' => true, |
71 | | - 'visibility_required' => ['elements' => ['property', 'method', 'const']], |
72 | | - 'non_printable_character' => true, |
73 | | - 'combine_nested_dirname' => true, |
74 | | - 'random_api_migration' => true, |
75 | | - 'ternary_to_null_coalescing' => true, |
76 | | - 'phpdoc_to_param_type' => true, |
77 | | - 'declare_strict_types' => true, |
78 | | - 'no_superfluous_phpdoc_tags' => [ |
79 | | - 'allow_mixed' => true, |
80 | | - ], |
81 | | - |
82 | | - // TODO php 7.4 migration (one day..) |
83 | | - 'phpdoc_to_property_type' => true, |
| 23 | +return $config |
| 24 | + ->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect()) |
| 25 | + ->setRules([ |
| 26 | + '@PHP84Migration' => true, |
| 27 | + '@PHPUnit100Migration:risky' => true, |
| 28 | + '@PER-CS' => true, |
| 29 | + '@Symfony' => true, |
| 30 | + '@Symfony:risky' => true, |
| 31 | + |
| 32 | + // overrides |
| 33 | + 'blank_line_after_opening_tag' => false, |
| 34 | + 'linebreak_after_opening_tag' => false, |
| 35 | + 'yoda_style' => false, |
| 36 | + 'phpdoc_summary' => false, |
| 37 | + 'increment_style' => false, |
84 | 38 | ]) |
85 | 39 | ->setUsingCache(true) |
86 | 40 | ->setRiskyAllowed(true) |
|
0 commit comments