.scrutinizer.yml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. build:
  2. nodes:
  3. analysis:
  4. dependencies:
  5. before:
  6. - composer require --dev johnpbloch/wordpress
  7. tests:
  8. override:
  9. - php-scrutinizer-run --enable-security-analysis
  10. filter:
  11. excluded_paths:
  12. - "inc/lib/" # exclude the twilio api and html_dom scaper files
  13. - "node_modules/"
  14. dependency_paths:
  15. - wordpress/ # exlude wordpress from commit
  16. # checks:
  17. # php:
  18. # fix_php_opening_tag: false
  19. # remove_php_closing_tag: false
  20. # one_class_per_file: false
  21. # side_effects_or_types: false
  22. # no_mixed_inline_html: false
  23. # require_braces_around_control_structures: false
  24. # php5_style_constructor: true
  25. # no_global_keyword: false
  26. # avoid_usage_of_logical_operators: true
  27. # psr2_class_declaration: false
  28. # no_underscore_prefix_in_properties: false
  29. # no_underscore_prefix_in_methods: false
  30. # blank_line_after_namespace_declaration: true
  31. # single_namespace_per_use: false
  32. # psr2_switch_declaration: false
  33. # psr2_control_structure_declaration: false
  34. # avoid_superglobals: false
  35. # security_vulnerabilities: false
  36. # no_exit: false
  37. # return_doc_comments: true
  38. # parameter_doc_comments: true
  39. # uppercase_constants: true
  40. # avoid_perl_style_comments: true
  41. #
  42. # coding_style:
  43. # php:
  44. # indentation:
  45. # general:
  46. # use_tabs: true
  47. # spaces:
  48. # within:
  49. # function_declaration: true
  50. # if: true
  51. # for: true
  52. # while: true
  53. # switch: true
  54. # catch: true
  55. # braces:
  56. # classes_functions:
  57. # class: end-of-line
  58. # function: end-of-line
  59. # if:
  60. # opening: end-of-line
  61. # always: true
  62. # for:
  63. # opening: end-of-line
  64. # while:
  65. # opening: end-of-line
  66. # do_while:
  67. # opening: end-of-line
  68. # upper_lower_casing:
  69. # keywords:
  70. # general: lower
  71. # constants:
  72. # true_false_null: lower
  73. # tools:
  74. # sensiolabs_security_checker: true
  75. # # external_code_coverage: true
  76. # php_code_sniffer:
  77. # config:
  78. # # https://scrutinizer-ci.com/docs/tools/php/code-sniffer/standards
  79. # standard: "WordPress"