Skip to content

Commit

Permalink
Fix: Disable rules for currently unconfigured fixers
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 8, 2020
1 parent 9659283 commit 2dd2f8b
Show file tree
Hide file tree
Showing 8 changed files with 136 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/RuleSet/Laravel6.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ final class Laravel6 extends AbstractRuleSet
protected $rules = [
'align_multiline_comment' => false,
'array_indentation' => false,
'array_push' => false,
'array_syntax' => [
'syntax' => 'short',
],
Expand All @@ -49,6 +50,7 @@ final class Laravel6 extends AbstractRuleSet
],
'class_definition' => true,
'class_keyword_remove' => false,
'clean_namespace' => false,
'combine_consecutive_issets' => false,
'combine_consecutive_unsets' => false,
'combine_nested_dirname' => false,
Expand Down Expand Up @@ -95,6 +97,7 @@ final class Laravel6 extends AbstractRuleSet
],
],
'global_namespace_import' => false,
'group_import' => false,
'header_comment' => false,
'heredoc_indentation' => false,
'heredoc_to_nowdoc' => true,
Expand All @@ -103,6 +106,7 @@ final class Laravel6 extends AbstractRuleSet
'increment_style' => ['style' => 'post'],
'indentation_type' => true,
'is_null' => false,
'lambda_not_used_import' => false,
'line_ending' => true,
'linebreak_after_opening_tag' => true,
'list_syntax' => false,
Expand All @@ -126,6 +130,7 @@ final class Laravel6 extends AbstractRuleSet
'native_function_type_declaration_casing' => false,
'new_with_braces' => false,
'no_alias_functions' => true,
'no_alias_language_construct_call' => false,
'no_alternative_syntax' => false,
'no_binary_string' => false,
'no_blank_lines_after_class_opening' => true,
Expand Down Expand Up @@ -164,6 +169,7 @@ final class Laravel6 extends AbstractRuleSet
'no_trailing_comma_in_singleline_array' => true,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'no_trailing_whitespace_in_string' => false,
'no_unneeded_control_parentheses' => true,
'no_unneeded_curly_braces' => false,
'no_unneeded_final_method' => false,
Expand All @@ -173,6 +179,7 @@ final class Laravel6 extends AbstractRuleSet
'no_unused_imports' => false,
'no_useless_else' => false,
'no_useless_return' => true,
'no_useless_sprintf' => false,
'no_whitespace_before_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
'non_printable_character' => false,
Expand All @@ -181,11 +188,13 @@ final class Laravel6 extends AbstractRuleSet
'not_operator_with_successor_space' => true,
'nullable_type_declaration_for_default_null_value' => false,
'object_operator_without_whitespace' => true,
'operator_linebreak' => false,
'ordered_class_elements' => false,
'ordered_imports' => [
'sortAlgorithm' => 'alpha',
],
'ordered_interfaces' => false,
'ordered_traits' => false,
'php_unit_construct' => false,
'php_unit_dedicate_assert' => false,
'php_unit_dedicate_assert_internal_type' => false,
Expand All @@ -209,6 +218,7 @@ final class Laravel6 extends AbstractRuleSet
'phpdoc_align' => false,
'phpdoc_annotation_without_dot' => false,
'phpdoc_indent' => true,
'phpdoc_inline_tag_normalizer' => false,
'phpdoc_line_span' => false,
'phpdoc_no_access' => true,
'phpdoc_no_alias_tag' => false,
Expand All @@ -222,6 +232,7 @@ final class Laravel6 extends AbstractRuleSet
'phpdoc_separation' => false,
'phpdoc_single_line_var_spacing' => true,
'phpdoc_summary' => true,
'phpdoc_tag_casing' => false,
'phpdoc_tag_type' => [
'tags' => [
'inheritdoc' => 'inline',
Expand All @@ -242,6 +253,7 @@ final class Laravel6 extends AbstractRuleSet
'dir' => null,
],
'random_api_migration' => false,
'regular_callable_call' => false,
'return_assignment' => false,
'return_type_declaration' => false,
'self_accessor' => true,
Expand All @@ -250,6 +262,7 @@ final class Laravel6 extends AbstractRuleSet
'set_type_to_cast' => false,
'short_scalar_cast' => true,
'simple_to_complex_string_variable' => false,
'simplified_if_return' => false,
'simplified_null_return' => true,
'single_blank_line_at_eof' => true,
'single_blank_line_before_namespace' => true,
Expand All @@ -263,6 +276,7 @@ final class Laravel6 extends AbstractRuleSet
],
'single_line_throw' => false,
'single_quote' => true,
'single_space_after_construct' => false,
'single_trait_insert_per_statement' => false,
'space_after_semicolon' => true,
'standardize_increment' => false,
Expand All @@ -273,11 +287,14 @@ final class Laravel6 extends AbstractRuleSet
'string_line_ending' => false,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
'switch_continue_to_break' => false,
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => false,
'ternary_to_null_coalescing' => false,
'trailing_comma_in_multiline_array' => true,
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'use_arrow_functions' => false,
'visibility_required' => [
'elements' => [
'method',
Expand Down
17 changes: 17 additions & 0 deletions src/RuleSet/Php71.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ final class Php71 extends AbstractRuleSet
'comment_type' => 'all_multiline',
],
'array_indentation' => true,
'array_push' => false,
'array_syntax' => [
'syntax' => 'short',
],
Expand Down Expand Up @@ -68,6 +69,7 @@ final class Php71 extends AbstractRuleSet
],
'class_definition' => true,
'class_keyword_remove' => false,
'clean_namespace' => false,
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'combine_nested_dirname' => true,
Expand Down Expand Up @@ -133,6 +135,7 @@ final class Php71 extends AbstractRuleSet
],
],
'global_namespace_import' => false,
'group_import' => false,
'header_comment' => false,
'heredoc_indentation' => false,
'heredoc_to_nowdoc' => true,
Expand All @@ -143,6 +146,7 @@ final class Php71 extends AbstractRuleSet
],
'indentation_type' => true,
'is_null' => true,
'lambda_not_used_import' => false,
'line_ending' => true,
'linebreak_after_opening_tag' => true,
'list_syntax' => [
Expand Down Expand Up @@ -171,6 +175,7 @@ final class Php71 extends AbstractRuleSet
'native_function_type_declaration_casing' => true,
'new_with_braces' => true,
'no_alias_functions' => true,
'no_alias_language_construct_call' => false,
'no_alternative_syntax' => true,
'no_binary_string' => true,
'no_blank_lines_after_class_opening' => true,
Expand Down Expand Up @@ -222,6 +227,7 @@ final class Php71 extends AbstractRuleSet
'no_trailing_comma_in_singleline_array' => true,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'no_trailing_whitespace_in_string' => false,
'no_unneeded_control_parentheses' => true,
'no_unneeded_curly_braces' => true,
'no_unneeded_final_method' => true,
Expand All @@ -231,6 +237,7 @@ final class Php71 extends AbstractRuleSet
'no_unused_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'no_useless_sprintf' => false,
'no_whitespace_before_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
'non_printable_character' => true,
Expand All @@ -239,6 +246,7 @@ final class Php71 extends AbstractRuleSet
'not_operator_with_successor_space' => false,
'nullable_type_declaration_for_default_null_value' => true,
'object_operator_without_whitespace' => true,
'operator_linebreak' => false,
'ordered_class_elements' => true,
'ordered_imports' => [
'imports_order' => [
Expand All @@ -248,6 +256,7 @@ final class Php71 extends AbstractRuleSet
],
],
'ordered_interfaces' => true,
'ordered_traits' => false,
'php_unit_construct' => true,
'php_unit_dedicate_assert' => [
'target' => 'newest',
Expand Down Expand Up @@ -288,6 +297,7 @@ final class Php71 extends AbstractRuleSet
'phpdoc_align' => true,
'phpdoc_annotation_without_dot' => true,
'phpdoc_indent' => true,
'phpdoc_inline_tag_normalizer' => false,
'phpdoc_line_span' => [
'const' => 'multi',
'method' => 'multi',
Expand Down Expand Up @@ -317,6 +327,7 @@ final class Php71 extends AbstractRuleSet
'phpdoc_separation' => true,
'phpdoc_single_line_var_spacing' => true,
'phpdoc_summary' => true,
'phpdoc_tag_casing' => false,
'phpdoc_tag_type' => [
'tags' => [
'inheritdoc' => 'inline',
Expand All @@ -340,6 +351,7 @@ final class Php71 extends AbstractRuleSet
'dir' => null,
],
'random_api_migration' => true,
'regular_callable_call' => false,
'return_assignment' => true,
'return_type_declaration' => true,
'self_accessor' => true,
Expand All @@ -348,6 +360,7 @@ final class Php71 extends AbstractRuleSet
'set_type_to_cast' => true,
'short_scalar_cast' => true,
'simple_to_complex_string_variable' => true,
'simplified_if_return' => false,
'simplified_null_return' => false,
'single_blank_line_at_eof' => true,
'single_blank_line_before_namespace' => true,
Expand All @@ -365,6 +378,7 @@ final class Php71 extends AbstractRuleSet
],
'single_line_throw' => false,
'single_quote' => true,
'single_space_after_construct' => false,
'single_trait_insert_per_statement' => true,
'space_after_semicolon' => true,
'standardize_increment' => true,
Expand All @@ -375,11 +389,14 @@ final class Php71 extends AbstractRuleSet
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
'switch_continue_to_break' => false,
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => false,
'ternary_to_null_coalescing' => true,
'trailing_comma_in_multiline_array' => true,
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'use_arrow_functions' => false,
'visibility_required' => [
'elements' => [
'const',
Expand Down
17 changes: 17 additions & 0 deletions src/RuleSet/Php73.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ final class Php73 extends AbstractRuleSet
'comment_type' => 'all_multiline',
],
'array_indentation' => true,
'array_push' => false,
'array_syntax' => [
'syntax' => 'short',
],
Expand Down Expand Up @@ -68,6 +69,7 @@ final class Php73 extends AbstractRuleSet
],
'class_definition' => true,
'class_keyword_remove' => false,
'clean_namespace' => false,
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'combine_nested_dirname' => true,
Expand Down Expand Up @@ -133,6 +135,7 @@ final class Php73 extends AbstractRuleSet
],
],
'global_namespace_import' => false,
'group_import' => false,
'header_comment' => false,
'heredoc_indentation' => false,
'heredoc_to_nowdoc' => true,
Expand All @@ -143,6 +146,7 @@ final class Php73 extends AbstractRuleSet
],
'indentation_type' => true,
'is_null' => true,
'lambda_not_used_import' => false,
'line_ending' => true,
'linebreak_after_opening_tag' => true,
'list_syntax' => [
Expand Down Expand Up @@ -171,6 +175,7 @@ final class Php73 extends AbstractRuleSet
'native_function_type_declaration_casing' => true,
'new_with_braces' => true,
'no_alias_functions' => true,
'no_alias_language_construct_call' => false,
'no_alternative_syntax' => true,
'no_binary_string' => true,
'no_blank_lines_after_class_opening' => true,
Expand Down Expand Up @@ -222,6 +227,7 @@ final class Php73 extends AbstractRuleSet
'no_trailing_comma_in_singleline_array' => true,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'no_trailing_whitespace_in_string' => false,
'no_unneeded_control_parentheses' => true,
'no_unneeded_curly_braces' => true,
'no_unneeded_final_method' => true,
Expand All @@ -231,6 +237,7 @@ final class Php73 extends AbstractRuleSet
'no_unused_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'no_useless_sprintf' => false,
'no_whitespace_before_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
'non_printable_character' => true,
Expand All @@ -239,6 +246,7 @@ final class Php73 extends AbstractRuleSet
'not_operator_with_successor_space' => false,
'nullable_type_declaration_for_default_null_value' => true,
'object_operator_without_whitespace' => true,
'operator_linebreak' => false,
'ordered_class_elements' => true,
'ordered_imports' => [
'imports_order' => [
Expand All @@ -248,6 +256,7 @@ final class Php73 extends AbstractRuleSet
],
],
'ordered_interfaces' => true,
'ordered_traits' => false,
'php_unit_construct' => true,
'php_unit_dedicate_assert' => [
'target' => 'newest',
Expand Down Expand Up @@ -288,6 +297,7 @@ final class Php73 extends AbstractRuleSet
'phpdoc_align' => true,
'phpdoc_annotation_without_dot' => true,
'phpdoc_indent' => true,
'phpdoc_inline_tag_normalizer' => false,
'phpdoc_line_span' => [
'const' => 'multi',
'method' => 'multi',
Expand Down Expand Up @@ -317,6 +327,7 @@ final class Php73 extends AbstractRuleSet
'phpdoc_separation' => true,
'phpdoc_single_line_var_spacing' => true,
'phpdoc_summary' => true,
'phpdoc_tag_casing' => false,
'phpdoc_tag_type' => [
'tags' => [
'inheritdoc' => 'inline',
Expand All @@ -340,6 +351,7 @@ final class Php73 extends AbstractRuleSet
'dir' => null,
],
'random_api_migration' => true,
'regular_callable_call' => false,
'return_assignment' => true,
'return_type_declaration' => true,
'self_accessor' => true,
Expand All @@ -348,6 +360,7 @@ final class Php73 extends AbstractRuleSet
'set_type_to_cast' => true,
'short_scalar_cast' => true,
'simple_to_complex_string_variable' => true,
'simplified_if_return' => false,
'simplified_null_return' => false,
'single_blank_line_at_eof' => true,
'single_blank_line_before_namespace' => true,
Expand All @@ -365,6 +378,7 @@ final class Php73 extends AbstractRuleSet
],
'single_line_throw' => false,
'single_quote' => true,
'single_space_after_construct' => false,
'single_trait_insert_per_statement' => true,
'space_after_semicolon' => true,
'standardize_increment' => true,
Expand All @@ -375,11 +389,14 @@ final class Php73 extends AbstractRuleSet
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
'switch_continue_to_break' => false,
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => false,
'ternary_to_null_coalescing' => true,
'trailing_comma_in_multiline_array' => true,
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'use_arrow_functions' => false,
'visibility_required' => [
'elements' => [
'const',
Expand Down
Loading

0 comments on commit 2dd2f8b

Please sign in to comment.