Skip to content

Commit

Permalink
Fix: Configure newly added options
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 28, 2023
1 parent 0861abe commit de51100
Show file tree
Hide file tree
Showing 26 changed files with 728 additions and 52 deletions.
30 changes: 28 additions & 2 deletions src/RuleSet/Php53.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,28 @@ public static function create(): RuleSet
'fully_qualified_strict_types' => [
'import_symbols' => false,
'leading_backslash_in_global_namespace' => false,
'phpdoc_tags' => [
'param',
'phpstan-param',
'phpstan-property',
'phpstan-property-read',
'phpstan-property-write',
'phpstan-return',
'phpstan-var',
'property',
'property-read',
'property-write',
'psalm-param',
'psalm-property',
'psalm-property-read',
'psalm-property-write',
'psalm-return',
'psalm-var',
'return',
'see',
'throws',
'var',
],
],
'function_declaration' => [
'closure_fn_spacing' => 'one',
Expand Down Expand Up @@ -795,7 +817,9 @@ public static function create(): RuleSet
],
'standardize_increment' => true,
'standardize_not_equals' => true,
'statement_indentation' => true,
'statement_indentation' => [
'stick_comment_to_next_continuous_control_statement' => false,
],
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
Expand Down Expand Up @@ -823,7 +847,9 @@ public static function create(): RuleSet
'space' => 'none',
'space_multiple_catch' => 'none',
],
'unary_operator_spaces' => true,
'unary_operator_spaces' => [
'only_dec_inc' => false,
],
'use_arrow_functions' => false,
'visibility_required' => [
'elements' => [
Expand Down
30 changes: 28 additions & 2 deletions src/RuleSet/Php54.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,28 @@ public static function create(): RuleSet
'fully_qualified_strict_types' => [
'import_symbols' => false,
'leading_backslash_in_global_namespace' => false,
'phpdoc_tags' => [
'param',
'phpstan-param',
'phpstan-property',
'phpstan-property-read',
'phpstan-property-write',
'phpstan-return',
'phpstan-var',
'property',
'property-read',
'property-write',
'psalm-param',
'psalm-property',
'psalm-property-read',
'psalm-property-write',
'psalm-return',
'psalm-var',
'return',
'see',
'throws',
'var',
],
],
'function_declaration' => [
'closure_fn_spacing' => 'one',
Expand Down Expand Up @@ -797,7 +819,9 @@ public static function create(): RuleSet
],
'standardize_increment' => true,
'standardize_not_equals' => true,
'statement_indentation' => true,
'statement_indentation' => [
'stick_comment_to_next_continuous_control_statement' => false,
],
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
Expand Down Expand Up @@ -825,7 +849,9 @@ public static function create(): RuleSet
'space' => 'none',
'space_multiple_catch' => 'none',
],
'unary_operator_spaces' => true,
'unary_operator_spaces' => [
'only_dec_inc' => false,
],
'use_arrow_functions' => false,
'visibility_required' => [
'elements' => [
Expand Down
30 changes: 28 additions & 2 deletions src/RuleSet/Php55.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,28 @@ public static function create(): RuleSet
'fully_qualified_strict_types' => [
'import_symbols' => false,
'leading_backslash_in_global_namespace' => false,
'phpdoc_tags' => [
'param',
'phpstan-param',
'phpstan-property',
'phpstan-property-read',
'phpstan-property-write',
'phpstan-return',
'phpstan-var',
'property',
'property-read',
'property-write',
'psalm-param',
'psalm-property',
'psalm-property-read',
'psalm-property-write',
'psalm-return',
'psalm-var',
'return',
'see',
'throws',
'var',
],
],
'function_declaration' => [
'closure_fn_spacing' => 'one',
Expand Down Expand Up @@ -808,7 +830,9 @@ public static function create(): RuleSet
],
'standardize_increment' => true,
'standardize_not_equals' => true,
'statement_indentation' => true,
'statement_indentation' => [
'stick_comment_to_next_continuous_control_statement' => false,
],
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
Expand Down Expand Up @@ -836,7 +860,9 @@ public static function create(): RuleSet
'space' => 'none',
'space_multiple_catch' => 'none',
],
'unary_operator_spaces' => true,
'unary_operator_spaces' => [
'only_dec_inc' => false,
],
'use_arrow_functions' => false,
'visibility_required' => [
'elements' => [
Expand Down
30 changes: 28 additions & 2 deletions src/RuleSet/Php56.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,28 @@ public static function create(): RuleSet
'fully_qualified_strict_types' => [
'import_symbols' => false,
'leading_backslash_in_global_namespace' => false,
'phpdoc_tags' => [
'param',
'phpstan-param',
'phpstan-property',
'phpstan-property-read',
'phpstan-property-write',
'phpstan-return',
'phpstan-var',
'property',
'property-read',
'property-write',
'psalm-param',
'psalm-property',
'psalm-property-read',
'psalm-property-write',
'psalm-return',
'psalm-var',
'return',
'see',
'throws',
'var',
],
],
'function_declaration' => [
'closure_fn_spacing' => 'one',
Expand Down Expand Up @@ -808,7 +830,9 @@ public static function create(): RuleSet
],
'standardize_increment' => true,
'standardize_not_equals' => true,
'statement_indentation' => true,
'statement_indentation' => [
'stick_comment_to_next_continuous_control_statement' => false,
],
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
Expand Down Expand Up @@ -836,7 +860,9 @@ public static function create(): RuleSet
'space' => 'none',
'space_multiple_catch' => 'none',
],
'unary_operator_spaces' => true,
'unary_operator_spaces' => [
'only_dec_inc' => false,
],
'use_arrow_functions' => false,
'visibility_required' => [
'elements' => [
Expand Down
30 changes: 28 additions & 2 deletions src/RuleSet/Php70.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,28 @@ public static function create(): RuleSet
'fully_qualified_strict_types' => [
'import_symbols' => false,
'leading_backslash_in_global_namespace' => false,
'phpdoc_tags' => [
'param',
'phpstan-param',
'phpstan-property',
'phpstan-property-read',
'phpstan-property-write',
'phpstan-return',
'phpstan-var',
'property',
'property-read',
'property-write',
'psalm-param',
'psalm-property',
'psalm-property-read',
'psalm-property-write',
'psalm-return',
'psalm-var',
'return',
'see',
'throws',
'var',
],
],
'function_declaration' => [
'closure_fn_spacing' => 'one',
Expand Down Expand Up @@ -808,7 +830,9 @@ public static function create(): RuleSet
],
'standardize_increment' => true,
'standardize_not_equals' => true,
'statement_indentation' => true,
'statement_indentation' => [
'stick_comment_to_next_continuous_control_statement' => false,
],
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
Expand Down Expand Up @@ -836,7 +860,9 @@ public static function create(): RuleSet
'space' => 'none',
'space_multiple_catch' => 'none',
],
'unary_operator_spaces' => true,
'unary_operator_spaces' => [
'only_dec_inc' => false,
],
'use_arrow_functions' => false,
'visibility_required' => [
'elements' => [
Expand Down
30 changes: 28 additions & 2 deletions src/RuleSet/Php71.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,28 @@ public static function create(): RuleSet
'fully_qualified_strict_types' => [
'import_symbols' => false,
'leading_backslash_in_global_namespace' => false,
'phpdoc_tags' => [
'param',
'phpstan-param',
'phpstan-property',
'phpstan-property-read',
'phpstan-property-write',
'phpstan-return',
'phpstan-var',
'property',
'property-read',
'property-write',
'psalm-param',
'psalm-property',
'psalm-property-read',
'psalm-property-write',
'psalm-return',
'psalm-var',
'return',
'see',
'throws',
'var',
],
],
'function_declaration' => [
'closure_fn_spacing' => 'one',
Expand Down Expand Up @@ -810,7 +832,9 @@ public static function create(): RuleSet
],
'standardize_increment' => true,
'standardize_not_equals' => true,
'statement_indentation' => true,
'statement_indentation' => [
'stick_comment_to_next_continuous_control_statement' => false,
],
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
Expand Down Expand Up @@ -838,7 +862,9 @@ public static function create(): RuleSet
'space' => 'none',
'space_multiple_catch' => 'none',
],
'unary_operator_spaces' => true,
'unary_operator_spaces' => [
'only_dec_inc' => false,
],
'use_arrow_functions' => false,
'visibility_required' => [
'elements' => [
Expand Down
30 changes: 28 additions & 2 deletions src/RuleSet/Php72.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,28 @@ public static function create(): RuleSet
'fully_qualified_strict_types' => [
'import_symbols' => false,
'leading_backslash_in_global_namespace' => false,
'phpdoc_tags' => [
'param',
'phpstan-param',
'phpstan-property',
'phpstan-property-read',
'phpstan-property-write',
'phpstan-return',
'phpstan-var',
'property',
'property-read',
'property-write',
'psalm-param',
'psalm-property',
'psalm-property-read',
'psalm-property-write',
'psalm-return',
'psalm-var',
'return',
'see',
'throws',
'var',
],
],
'function_declaration' => [
'closure_fn_spacing' => 'one',
Expand Down Expand Up @@ -810,7 +832,9 @@ public static function create(): RuleSet
],
'standardize_increment' => true,
'standardize_not_equals' => true,
'statement_indentation' => true,
'statement_indentation' => [
'stick_comment_to_next_continuous_control_statement' => false,
],
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
Expand Down Expand Up @@ -838,7 +862,9 @@ public static function create(): RuleSet
'space' => 'none',
'space_multiple_catch' => 'none',
],
'unary_operator_spaces' => true,
'unary_operator_spaces' => [
'only_dec_inc' => false,
],
'use_arrow_functions' => false,
'visibility_required' => [
'elements' => [
Expand Down
Loading

0 comments on commit de51100

Please sign in to comment.