You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
3.5KB

  1. filter:
  2. excluded_paths:
  3. - 'tests/*'
  4. - 'doc/*'
  5. tools:
  6. sensiolabs_security_checker: true
  7. php_sim: true
  8. php_pdepend: true
  9. php_analyzer: true
  10. checks:
  11. php:
  12. line_length:
  13. max_length: '100'
  14. verify_access_scope_valid: true
  15. require_scope_for_methods: true
  16. no_underscore_prefix_in_methods: true
  17. missing_arguments: true
  18. method_calls_on_non_object: true
  19. deprecated_code_usage: true
  20. no_eval: true
  21. parameter_doc_comments: true
  22. return_doc_comments: true
  23. fix_doc_comments: true
  24. return_doc_comments: true
  25. parameter_doc_comments: true
  26. more_specific_types_in_doc_comments: true
  27. code_rating: true
  28. duplication: true
  29. variable_existence: true
  30. useless_calls: true
  31. use_statement_alias_conflict: true
  32. unused_variables: true
  33. unused_properties: true
  34. unused_parameters: true
  35. unused_methods: true
  36. unreachable_code: true
  37. sql_injection_vulnerabilities: true
  38. security_vulnerabilities: true
  39. precedence_mistakes: true
  40. precedence_in_conditions: true
  41. parameter_non_unique: true
  42. no_property_on_interface: true
  43. no_non_implemented_abstract_methods: true
  44. deprecated_code_usage: true
  45. closure_use_not_conflicting: true
  46. closure_use_modifiable: true
  47. avoid_useless_overridden_methods: true
  48. avoid_conflicting_incrementers: true
  49. assignment_of_null_return: true
  50. php5_style_constructor: true
  51. one_class_per_file: true
  52. require_php_tag_first: true
  53. uppercase_constants: true
  54. require_braces_around_control_structures: true
  55. psr2_switch_declaration: true
  56. psr2_control_structure_declaration: true
  57. properties_in_camelcaps: true
  58. parameters_in_camelcaps: true
  59. optional_parameters_at_the_end: true
  60. no_underscore_prefix_in_properties: true
  61. no_space_inside_cast_operator: true
  62. no_space_before_semicolon: true
  63. no_short_open_tag: true
  64. no_goto: true
  65. lowercase_php_keywords: true
  66. lowercase_basic_constants: true
  67. function_in_camel_caps: true
  68. classes_in_camel_caps: true
  69. avoid_space_indentation: true
  70. overriding_private_members: true
  71. no_unnecessary_function_call_in_for_loop: true
  72. simplify_boolean_return: true
  73. javascript:
  74. wrap_iife: true
  75. no_process_exit: true
  76. no_process_env: true
  77. no_extra_semi: true
  78. no_extra_bind: true
  79. no_eval: true
  80. no_else_return: true
  81. dot_notation: true
  82. camelcase: true
  83. wrap_regex: true
  84. valid_typeof: true
  85. no_wrap_func: true
  86. no_use_before_define: true
  87. no_unreachable: true
  88. no_undefined: true
  89. no_trailing_spaces: true
  90. no_reserved_keys: true
  91. no_redeclare: true
  92. no_obj_calls: true
  93. no_loop_func: true
  94. no_lonely_if: true
  95. no_lone_blocks: true
  96. no_inner_declarations: true
  97. no_floating_decimal: true
  98. no_extra_boolean_cast: true
  99. no_empty: true
  100. no_dupe_keys: true
  101. coding_style:
  102. php:
  103. indentation:
  104. general:
  105. use_tabs: true
  106. size: 4
  107. spaces:
  108. within:
  109. brackets: false
  110. other:
  111. after_type_cast: false
  112. braces:
  113. classes_functions:
  114. class: end-of-line