SymfonyRisky.rst 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ===========================
  2. Rule set ``@Symfony:risky``
  3. ===========================
  4. Rules that follow the official `Symfony Coding Standards <https://symfony.com/doc/current/contributing/code/standards.html>`_.
  5. Warning
  6. -------
  7. This set contains rules that are risky
  8. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9. Using this rule set may lead to changes in your code's logic and behaviour. Use it with caution and review changes before incorporating them into your code base.
  10. Rules
  11. -----
  12. - `@PHP56Migration:risky <./PHP56MigrationRisky.rst>`_
  13. - `@PSR12:risky <./PSR12Risky.rst>`_
  14. - `array_push <./../rules/alias/array_push.rst>`_
  15. - `combine_nested_dirname <./../rules/function_notation/combine_nested_dirname.rst>`_
  16. - `dir_constant <./../rules/language_construct/dir_constant.rst>`_
  17. - `ereg_to_preg <./../rules/alias/ereg_to_preg.rst>`_
  18. - `error_suppression <./../rules/language_construct/error_suppression.rst>`_
  19. - `fopen_flag_order <./../rules/function_notation/fopen_flag_order.rst>`_
  20. - `fopen_flags <./../rules/function_notation/fopen_flags.rst>`_ with config:
  21. ``['b_mode' => false]``
  22. - `function_to_constant <./../rules/language_construct/function_to_constant.rst>`_
  23. - `get_class_to_class_keyword <./../rules/language_construct/get_class_to_class_keyword.rst>`_
  24. - `implode_call <./../rules/function_notation/implode_call.rst>`_
  25. - `is_null <./../rules/language_construct/is_null.rst>`_
  26. - `logical_operators <./../rules/operator/logical_operators.rst>`_
  27. - `long_to_shorthand_operator <./../rules/operator/long_to_shorthand_operator.rst>`_
  28. - `modernize_strpos <./../rules/alias/modernize_strpos.rst>`_
  29. - `modernize_types_casting <./../rules/cast_notation/modernize_types_casting.rst>`_
  30. - `native_constant_invocation <./../rules/constant_notation/native_constant_invocation.rst>`_ with config:
  31. ``['strict' => false]``
  32. - `native_function_invocation <./../rules/function_notation/native_function_invocation.rst>`_ with config:
  33. ``['include' => ['@compiler_optimized'], 'scope' => 'namespaced', 'strict' => true]``
  34. - `no_alias_functions <./../rules/alias/no_alias_functions.rst>`_
  35. - `no_homoglyph_names <./../rules/naming/no_homoglyph_names.rst>`_
  36. - `no_php4_constructor <./../rules/class_notation/no_php4_constructor.rst>`_
  37. - `no_unneeded_final_method <./../rules/class_notation/no_unneeded_final_method.rst>`_
  38. - `no_useless_sprintf <./../rules/function_notation/no_useless_sprintf.rst>`_
  39. - `non_printable_character <./../rules/basic/non_printable_character.rst>`_
  40. - `ordered_traits <./../rules/class_notation/ordered_traits.rst>`_
  41. - `php_unit_construct <./../rules/php_unit/php_unit_construct.rst>`_
  42. - `php_unit_mock_short_will_return <./../rules/php_unit/php_unit_mock_short_will_return.rst>`_
  43. - `php_unit_set_up_tear_down_visibility <./../rules/php_unit/php_unit_set_up_tear_down_visibility.rst>`_
  44. - `php_unit_test_annotation <./../rules/php_unit/php_unit_test_annotation.rst>`_
  45. - `psr_autoloading <./../rules/basic/psr_autoloading.rst>`_
  46. - `self_accessor <./../rules/class_notation/self_accessor.rst>`_
  47. - `set_type_to_cast <./../rules/alias/set_type_to_cast.rst>`_
  48. - `string_length_to_empty <./../rules/string_notation/string_length_to_empty.rst>`_
  49. - `string_line_ending <./../rules/string_notation/string_line_ending.rst>`_
  50. - `ternary_to_elvis_operator <./../rules/operator/ternary_to_elvis_operator.rst>`_