Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor: improve rule sets order #6738

Merged
merged 2 commits into from
Jan 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
52 changes: 26 additions & 26 deletions doc/list.rst

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/ruleSets/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ List of Available Rule sets
- `@PHPUnit75Migration:risky <./PHPUnit75MigrationRisky.rst>`_
- `@PHPUnit84Migration:risky <./PHPUnit84MigrationRisky.rst>`_
- `@PSR1 <./PSR1.rst>`_
- `@PSR2 <./PSR2.rst>`_
- `@PSR12 <./PSR12.rst>`_
- `@PSR12:risky <./PSR12Risky.rst>`_
- `@PSR2 <./PSR2.rst>`_
- `@PhpCsFixer <./PhpCsFixer.rst>`_
- `@PhpCsFixer:risky <./PhpCsFixerRisky.rst>`_
- `@Symfony <./Symfony.rst>`_
Expand Down
6 changes: 3 additions & 3 deletions doc/rules/basic/braces.rst
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,14 @@ The rule is part of the following rule sets:

``['allow_single_line_anonymous_class_with_empty_body' => true]``

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``braces`` rule with the default config.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``braces`` rule with the config below:

``['allow_single_line_anonymous_class_with_empty_body' => true]``

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``braces`` rule with the default config.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``braces`` rule with the config below:

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/basic/encoding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ The rule is part of the following rule sets:
@PSR1
Using the `@PSR1 <./../../ruleSets/PSR1.rst>`_ rule set will enable the ``encoding`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``encoding`` rule.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``encoding`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``encoding`` rule.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``encoding`` rule.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/casing/constant_case.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ The rule is part of the following rule sets:
@PER
Using the `@PER <./../../ruleSets/PER.rst>`_ rule set will enable the ``constant_case`` rule with the default config.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``constant_case`` rule with the default config.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``constant_case`` rule with the default config.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``constant_case`` rule with the default config.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``constant_case`` rule with the default config.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/casing/lowercase_keywords.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ The rule is part of the following rule sets:
@PER
Using the `@PER <./../../ruleSets/PER.rst>`_ rule set will enable the ``lowercase_keywords`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``lowercase_keywords`` rule.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``lowercase_keywords`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``lowercase_keywords`` rule.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``lowercase_keywords`` rule.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/class_notation/class_definition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,14 @@ The rule is part of the following rule sets:

``['inline_constructor_arguments' => false, 'space_before_parenthesis' => true]``

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``class_definition`` rule with the default config.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``class_definition`` rule with the config below:

``['inline_constructor_arguments' => false, 'space_before_parenthesis' => true]``

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``class_definition`` rule with the default config.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``class_definition`` rule with the config below:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ The rule is part of the following rule sets:

``['elements' => ['property']]``

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``single_class_element_per_statement`` rule with the config below:
@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``single_class_element_per_statement`` rule with the config below:

``['elements' => ['property']]``

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``single_class_element_per_statement`` rule with the config below:
@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``single_class_element_per_statement`` rule with the config below:

``['elements' => ['property']]``

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/class_notation/visibility_required.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ The rule is part of the following rule sets:
@PHP82Migration
Using the `@PHP82Migration <./../../ruleSets/PHP82Migration.rst>`_ rule set will enable the ``visibility_required`` rule with the default config.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``visibility_required`` rule with the default config.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``visibility_required`` rule with the config below:

``['elements' => ['method', 'property']]``

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``visibility_required`` rule with the default config.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``visibility_required`` rule with the default config.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/comment/no_trailing_whitespace_in_comment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ The rule is part of the following rule sets:
@PER
Using the `@PER <./../../ruleSets/PER.rst>`_ rule set will enable the ``no_trailing_whitespace_in_comment`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``no_trailing_whitespace_in_comment`` rule.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``no_trailing_whitespace_in_comment`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``no_trailing_whitespace_in_comment`` rule.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``no_trailing_whitespace_in_comment`` rule.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/control_structure/elseif.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ The rule is part of the following rule sets:
@PER
Using the `@PER <./../../ruleSets/PER.rst>`_ rule set will enable the ``elseif`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``elseif`` rule.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``elseif`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``elseif`` rule.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``elseif`` rule.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/control_structure/no_break_comment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ The rule is part of the following rule sets:
@PER
Using the `@PER <./../../ruleSets/PER.rst>`_ rule set will enable the ``no_break_comment`` rule with the default config.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``no_break_comment`` rule with the default config.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``no_break_comment`` rule with the default config.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``no_break_comment`` rule with the default config.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``no_break_comment`` rule with the default config.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ The rule is part of the following rule sets:
@PER
Using the `@PER <./../../ruleSets/PER.rst>`_ rule set will enable the ``switch_case_semicolon_to_colon`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``switch_case_semicolon_to_colon`` rule.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``switch_case_semicolon_to_colon`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``switch_case_semicolon_to_colon`` rule.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``switch_case_semicolon_to_colon`` rule.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/control_structure/switch_case_space.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ The rule is part of the following rule sets:
@PER
Using the `@PER <./../../ruleSets/PER.rst>`_ rule set will enable the ``switch_case_space`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``switch_case_space`` rule.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``switch_case_space`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``switch_case_space`` rule.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``switch_case_space`` rule.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/function_notation/function_declaration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ The rule is part of the following rule sets:
@PER
Using the `@PER <./../../ruleSets/PER.rst>`_ rule set will enable the ``function_declaration`` rule with the default config.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``function_declaration`` rule with the default config.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``function_declaration`` rule with the default config.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``function_declaration`` rule with the default config.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``function_declaration`` rule with the default config.

Expand Down
8 changes: 4 additions & 4 deletions doc/rules/function_notation/method_argument_space.rst
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@ The rule is part of the following rule sets:

``['after_heredoc' => true]``

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``method_argument_space`` rule with the config below:
@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``method_argument_space`` rule with the config below:

``['on_multiline' => 'ensure_fully_multiline']``

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``method_argument_space`` rule with the config below:
@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``method_argument_space`` rule with the config below:

``['on_multiline' => 'ensure_fully_multiline']``

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/function_notation/no_spaces_after_function_name.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ The rule is part of the following rule sets:
@PER
Using the `@PER <./../../ruleSets/PER.rst>`_ rule set will enable the ``no_spaces_after_function_name`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``no_spaces_after_function_name`` rule.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``no_spaces_after_function_name`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``no_spaces_after_function_name`` rule.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``no_spaces_after_function_name`` rule.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/import/single_import_per_statement.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ The rule is part of the following rule sets:

``['group_to_single_imports' => false]``

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``single_import_per_statement`` rule with the default config.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``single_import_per_statement`` rule with the config below:

``['group_to_single_imports' => false]``

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``single_import_per_statement`` rule with the default config.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``single_import_per_statement`` rule with the default config.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/import/single_line_after_imports.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ The rule is part of the following rule sets:
@PER
Using the `@PER <./../../ruleSets/PER.rst>`_ rule set will enable the ``single_line_after_imports`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``single_line_after_imports`` rule.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``single_line_after_imports`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``single_line_after_imports`` rule.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``single_line_after_imports`` rule.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/namespace_notation/blank_line_after_namespace.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ The rule is part of the following rule sets:
@PER
Using the `@PER <./../../ruleSets/PER.rst>`_ rule set will enable the ``blank_line_after_namespace`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``blank_line_after_namespace`` rule.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``blank_line_after_namespace`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``blank_line_after_namespace`` rule.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``blank_line_after_namespace`` rule.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/operator/no_space_around_double_colon.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ The rule is part of the following rule sets:
@PER
Using the `@PER <./../../ruleSets/PER.rst>`_ rule set will enable the ``no_space_around_double_colon`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``no_space_around_double_colon`` rule.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``no_space_around_double_colon`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``no_space_around_double_colon`` rule.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``no_space_around_double_colon`` rule.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/php_tag/full_opening_tag.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ The rule is part of the following rule sets:
@PSR1
Using the `@PSR1 <./../../ruleSets/PSR1.rst>`_ rule set will enable the ``full_opening_tag`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``full_opening_tag`` rule.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``full_opening_tag`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``full_opening_tag`` rule.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``full_opening_tag`` rule.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/php_tag/no_closing_tag.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ The rule is part of the following rule sets:
@PER
Using the `@PER <./../../ruleSets/PER.rst>`_ rule set will enable the ``no_closing_tag`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``no_closing_tag`` rule.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``no_closing_tag`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``no_closing_tag`` rule.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``no_closing_tag`` rule.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/whitespace/indentation_type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ The rule is part of the following rule sets:
@PER
Using the `@PER <./../../ruleSets/PER.rst>`_ rule set will enable the ``indentation_type`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``indentation_type`` rule.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``indentation_type`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``indentation_type`` rule.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``indentation_type`` rule.

Expand Down
6 changes: 3 additions & 3 deletions doc/rules/whitespace/line_ending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ The rule is part of the following rule sets:
@PER
Using the `@PER <./../../ruleSets/PER.rst>`_ rule set will enable the ``line_ending`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``line_ending`` rule.

@PSR2
Using the `@PSR2 <./../../ruleSets/PSR2.rst>`_ rule set will enable the ``line_ending`` rule.

@PSR12
Using the `@PSR12 <./../../ruleSets/PSR12.rst>`_ rule set will enable the ``line_ending`` rule.

@PhpCsFixer
Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``line_ending`` rule.

Expand Down