SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php | |
| 2 | return PhpCsFixer\Config::create() | |
| 3 | ->setRiskyAllowed(true) | |
| 4 | ->setRules([ | |
| 5 | '@PHP56Migration' => true, | |
| 6 | '@Symfony' => true, | |
| 7 | '@Symfony:risky' => true, | |
| 8 | 'align_multiline_comment' => true, | |
| 9 | 'array_syntax' => ['syntax' => 'short'], | |
| 10 | 'blank_line_before_statement' => true, | |
| 11 | 'combine_consecutive_unsets' => true, | |
| 12 | // one should use PHPUnit methods to set up expected exception instead of annotations | |
| 13 | 'general_phpdoc_annotation_remove' => ['expectedException', 'expectedExceptionMessage', 'expectedExceptionMessageRegExp'], | |
| 14 | 'heredoc_to_nowdoc' => true, | |
| 15 | 'list_syntax' => ['syntax' => 'long'], | |
| 16 | 'method_argument_space' => ['ensure_fully_multiline' => true], | |
| 17 | 'no_extra_consecutive_blank_lines' => ['break', 'continue', 'extra', 'return', 'throw', 'use', 'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block'], | |
| 18 | 'no_null_property_initialization' => true, | |
| 19 | 'no_short_echo_tag' => true, | |
| 20 | 'no_unreachable_default_argument_value' => true, | |
| 21 | 'no_useless_else' => true, | |
| 22 | 'no_useless_return' => true, | |
| 23 | 'ordered_class_elements' => true, | |
| 24 | 'ordered_imports' => true, | |
| 25 | 'php_unit_strict' => true, | |
| 26 | 'php_unit_test_class_requires_covers' => true, | |
| 27 | 'phpdoc_add_missing_param_annotation' => true, | |
| 28 | 'phpdoc_order' => true, | |
| 29 | 'phpdoc_types_order' => true, | |
| 30 | 'semicolon_after_instruction' => true, | |
| 31 | 'single_line_comment_style' => true, | |
| 32 | 'strict_comparison' => true, | |
| 33 | 'strict_param' => true, | |
| 34 | ]) | |
| 35 | ->setFinder( | |
| 36 | PhpCsFixer\Finder::create() | |
| 37 | ->exclude('tests/Fixtures') | |
| 38 | ->in(__DIR__) | |
| 39 | ) | |
| 40 | ; |