SymfonyRisky.rst 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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>`_. This set contains rules that are risky.
  5. Rules
  6. -----
  7. - `@PHP56Migration:risky <./PHP56MigrationRisky.rst>`_
  8. - `@PSR12:risky <./PSR12Risky.rst>`_
  9. - `array_push <./../rules/alias/array_push.rst>`_
  10. - `combine_nested_dirname <./../rules/function_notation/combine_nested_dirname.rst>`_
  11. - `dir_constant <./../rules/language_construct/dir_constant.rst>`_
  12. - `ereg_to_preg <./../rules/alias/ereg_to_preg.rst>`_
  13. - `error_suppression <./../rules/language_construct/error_suppression.rst>`_
  14. - `fopen_flag_order <./../rules/function_notation/fopen_flag_order.rst>`_
  15. - `fopen_flags <./../rules/function_notation/fopen_flags.rst>`_ with config:
  16. ``['b_mode' => false]``
  17. - `function_to_constant <./../rules/language_construct/function_to_constant.rst>`_
  18. - `get_class_to_class_keyword <./../rules/language_construct/get_class_to_class_keyword.rst>`_
  19. - `implode_call <./../rules/function_notation/implode_call.rst>`_
  20. - `is_null <./../rules/language_construct/is_null.rst>`_
  21. - `logical_operators <./../rules/operator/logical_operators.rst>`_
  22. - `modernize_strpos <./../rules/alias/modernize_strpos.rst>`_
  23. - `modernize_types_casting <./../rules/cast_notation/modernize_types_casting.rst>`_
  24. - `native_constant_invocation <./../rules/constant_notation/native_constant_invocation.rst>`_ with config:
  25. ``['strict' => false]``
  26. - `native_function_invocation <./../rules/function_notation/native_function_invocation.rst>`_ with config:
  27. ``['include' => ['@compiler_optimized'], 'scope' => 'namespaced', 'strict' => true]``
  28. - `no_alias_functions <./../rules/alias/no_alias_functions.rst>`_
  29. - `no_homoglyph_names <./../rules/naming/no_homoglyph_names.rst>`_
  30. - `no_php4_constructor <./../rules/class_notation/no_php4_constructor.rst>`_
  31. - `no_unneeded_final_method <./../rules/class_notation/no_unneeded_final_method.rst>`_
  32. - `no_useless_sprintf <./../rules/function_notation/no_useless_sprintf.rst>`_
  33. - `non_printable_character <./../rules/basic/non_printable_character.rst>`_
  34. - `ordered_traits <./../rules/class_notation/ordered_traits.rst>`_
  35. - `php_unit_construct <./../rules/php_unit/php_unit_construct.rst>`_
  36. - `php_unit_mock_short_will_return <./../rules/php_unit/php_unit_mock_short_will_return.rst>`_
  37. - `php_unit_set_up_tear_down_visibility <./../rules/php_unit/php_unit_set_up_tear_down_visibility.rst>`_
  38. - `php_unit_test_annotation <./../rules/php_unit/php_unit_test_annotation.rst>`_
  39. - `psr_autoloading <./../rules/basic/psr_autoloading.rst>`_
  40. - `self_accessor <./../rules/class_notation/self_accessor.rst>`_
  41. - `set_type_to_cast <./../rules/alias/set_type_to_cast.rst>`_
  42. - `string_length_to_empty <./../rules/string_notation/string_length_to_empty.rst>`_
  43. - `string_line_ending <./../rules/string_notation/string_line_ending.rst>`_
  44. - `ternary_to_elvis_operator <./../rules/operator/ternary_to_elvis_operator.rst>`_
  45. Disabled rules
  46. --------------
  47. - `no_unreachable_default_argument_value <./../rules/function_notation/no_unreachable_default_argument_value.rst>`_