|
14 | 14 | use CodeIgniter\CodingStandard\CodeIgniter4; |
15 | 15 | use Nexus\CsConfig\Factory; |
16 | 16 | use Nexus\CsConfig\Fixer\Comment\NoCodeSeparatorCommentFixer; |
17 | | -use Nexus\CsConfig\Fixer\Comment\SpaceAfterCommentStartFixer; |
18 | 17 | use Nexus\CsConfig\FixerGenerator; |
19 | 18 | use PhpCsFixer\Finder; |
20 | 19 |
|
|
34 | 33 | 'php_unit_internal_class' => false, |
35 | 34 | 'no_unused_imports' => false, |
36 | 35 | 'class_attributes_separation' => false, |
| 36 | + // <<<<<<<<<<<<<<<<<<<<<<<< @TODO TO BE REMOVED ONCE LIVE IN CODING-STANDARD |
| 37 | + 'blank_line_between_import_groups' => true, |
| 38 | + 'class_definition' => [ |
| 39 | + 'multi_line_extends_each_single_line' => true, |
| 40 | + 'single_item_single_line' => true, |
| 41 | + 'single_line' => true, |
| 42 | + 'space_before_parenthesis' => true, |
| 43 | + 'inline_constructor_arguments' => true, |
| 44 | + ], |
| 45 | + 'control_structure_braces' => true, |
| 46 | + 'no_multiple_statements_per_line' => true, |
| 47 | + 'no_trailing_comma_in_singleline' => [ |
| 48 | + 'elements' => [ |
| 49 | + 'arguments', |
| 50 | + 'array_destructuring', |
| 51 | + 'array', |
| 52 | + 'group_import', |
| 53 | + ], |
| 54 | + ], |
| 55 | + 'no_useless_nullsafe_operator' => true, |
| 56 | + 'phpdoc_separation' => [ |
| 57 | + 'groups' => [ |
| 58 | + ['immutable', 'psalm-immutable'], |
| 59 | + ['param', 'phpstan-param', 'psalm-param'], |
| 60 | + ['phpstan-pure', 'psalm-pure'], |
| 61 | + ['readonly', 'psalm-readonly'], |
| 62 | + ['return', 'phpstan-return', 'psalm-return'], |
| 63 | + ['template', 'phpstan-template', 'psalm-template'], |
| 64 | + ['template-covariant', 'phpstan-template-covariant', 'psalm-template-covariant'], |
| 65 | + ['phpstan-type', 'psalm-type'], |
| 66 | + ['var', 'phpstan-var', 'psalm-var'], |
| 67 | + ], |
| 68 | + ], |
| 69 | + 'single_line_comment_spacing' => true, |
| 70 | + 'statement_indentation' => true, |
| 71 | + // >>>>>>>>>>>>>>>>>>>>>>>>> |
37 | 72 | ]; |
38 | 73 |
|
39 | 74 | $options = [ |
|
42 | 77 | 'customFixers' => FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'), |
43 | 78 | 'customRules' => [ |
44 | 79 | NoCodeSeparatorCommentFixer::name() => true, |
45 | | - SpaceAfterCommentStartFixer::name() => true, |
46 | 80 | ], |
47 | 81 | ]; |
48 | 82 |
|
|
0 commit comments