.scrutinizer.yml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. filter:
  2. paths:
  3. - lib/*
  4. checks:
  5. php:
  6. code_rating: true
  7. duplication: true
  8. variable_existence: true
  9. useless_calls: true
  10. use_statement_alias_conflict: true
  11. unused_variables: true
  12. unused_properties: true
  13. unused_parameters: true
  14. unused_methods: true
  15. unreachable_code: true
  16. sql_injection_vulnerabilities: true
  17. security_vulnerabilities: true
  18. precedence_mistakes: true
  19. precedence_in_conditions: true
  20. parameter_non_unique: true
  21. no_property_on_interface: true
  22. no_non_implemented_abstract_methods: true
  23. deprecated_code_usage: true
  24. closure_use_not_conflicting: true
  25. closure_use_modifiable: true
  26. avoid_useless_overridden_methods: true
  27. avoid_conflicting_incrementers: true
  28. assignment_of_null_return: true
  29. verify_access_scope_valid: true
  30. verify_argument_usable_as_reference: true
  31. verify_property_names: true
  32. use_self_instead_of_fqcn: true
  33. uppercase_constants: true
  34. too_many_arguments: true
  35. spacing_of_function_arguments: true
  36. spacing_around_non_conditional_operators: true
  37. spacing_around_conditional_operators: true
  38. space_after_cast: true
  39. single_namespace_per_use: true
  40. scope_indentation:
  41. spaces_per_level: '4'
  42. return_doc_comments: true
  43. return_doc_comment_if_not_inferrable: true
  44. require_scope_for_properties: true
  45. require_scope_for_methods: true
  46. require_php_tag_first: true
  47. property_assignments: true
  48. properties_in_camelcaps: true
  49. php5_style_constructor: true
  50. parameters_in_camelcaps: true
  51. parameter_doc_comments: true
  52. param_doc_comment_if_not_inferrable: true
  53. optional_parameters_at_the_end: true
  54. one_class_per_file: true
  55. no_unnecessary_function_call_in_for_loop: true
  56. no_unnecessary_final_modifier: true
  57. no_trailing_whitespace: true
  58. no_space_inside_cast_operator: true
  59. no_space_before_semicolon: true
  60. no_short_open_tag: true
  61. no_commented_out_code: true
  62. newline_at_end_of_file: true
  63. missing_arguments: true
  64. lowercase_php_keywords: true
  65. lowercase_basic_constants: true
  66. function_in_camel_caps: true
  67. function_body_start_on_same_line: true
  68. ensure_lower_case_builtin_functions: true
  69. classes_in_camel_caps: true
  70. blank_line_after_namespace_declaration: true
  71. avoid_usage_of_logical_operators: true
  72. avoid_todo_comments: true
  73. avoid_tab_indentation: true
  74. avoid_superglobals: true
  75. avoid_fixme_comments: true
  76. avoid_corrupting_byteorder_marks: true
  77. avoid_duplicate_types: true
  78. avoid_closing_tag: true
  79. avoid_aliased_php_functions: true
  80. argument_type_checks: true