.scrutinizer.yml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. # .scrutinizer.yml - see https://scrutinizer-ci.com/docs/guides/php/continuous-integration-deployment for doc
  2. # Excludes go for things do not contain code, are not managed well by Scrutinizer or are external libraries that
  3. # Chamilo includes but that we cannot update without patching upstream.
  4. build:
  5. environment:
  6. mysql: 5.5
  7. php:
  8. version: 5.6.0
  9. ini:
  10. 'date.timezone': 'US/Pacific'
  11. 'phar.readonly': false
  12. hosts:
  13. my.chamilodev.net: '127.0.0.1'
  14. checks:
  15. php:
  16. no_trailing_whitespace: true
  17. code_rating: true
  18. duplication: true
  19. fix_php_opening_tag: false
  20. remove_php_closing_tag: true
  21. one_class_per_file: true
  22. side_effects_or_types: false
  23. no_mixed_inline_html: false
  24. require_braces_around_control_structures: true
  25. php5_style_constructor: true
  26. no_global_keyword: false
  27. avoid_usage_of_logical_operators: false
  28. psr2_class_declaration: true
  29. no_underscore_prefix_in_properties: false
  30. no_underscore_prefix_in_methods: false
  31. blank_line_after_namespace_declaration: true
  32. single_namespace_per_use: false
  33. psr2_switch_declaration: true
  34. psr2_control_structure_declaration: true
  35. avoid_superglobals: false
  36. security_vulnerabilities: false
  37. no_exit: false
  38. uppercase_constants: true
  39. prefer_while_loop_over_for_loop: true
  40. newline_at_end_of_file: true
  41. line_length:
  42. max_length: '120'
  43. parameter_doc_comments: true
  44. parameters_in_camelcaps: true
  45. return_doc_comments: true
  46. use_self_instead_of_fqcn: true
  47. overriding_parameter: false
  48. avoid_entity_manager_injection: false
  49. coding_style:
  50. php:
  51. indentation:
  52. general:
  53. use_tabs: false
  54. size: 4
  55. switch:
  56. indent_case: true
  57. spaces:
  58. general:
  59. linefeed_character: newline
  60. around_operators:
  61. concatenation: false
  62. braces:
  63. classes_functions:
  64. class: new-line
  65. function: new-line
  66. closure: end-of-line
  67. if:
  68. opening: end-of-line
  69. for:
  70. opening: end-of-line
  71. while:
  72. opening: end-of-line
  73. do_while:
  74. opening: end-of-line
  75. switch:
  76. opening: end-of-line
  77. try:
  78. opening: end-of-line
  79. upper_lower_casing:
  80. keywords:
  81. general: lower
  82. constants:
  83. true_false_null: lower
  84. #tools:
  85. # php_mess_detector:
  86. # enabled: true
  87. # extensions:
  88. # - php
  89. # command: phpmd
  90. # config:
  91. # rulesets:
  92. # - codesize
  93. # php_analyzer:
  94. # enabled: true
  95. # filter:
  96. # excluded_paths:
  97. # - 'tests/*'
  98. # extensions:
  99. # - php
  100. # php_code_sniffer:
  101. # enabled: true
  102. # config:
  103. # standard: PSR2
  104. # extensions:
  105. # - php
  106. # command: phpcs
  107. # filter:
  108. # excluded_paths:
  109. # - 'tests/*'
  110. # sensiolabs_security_checker:
  111. # enabled: true
  112. # php_pdepend:
  113. # command: pdepend
  114. # configuration_file: ~
  115. # suffixes:
  116. # - php
  117. # excluded_dirs:
  118. # - 'vendor'
  119. # - 'tests/*'
  120. # enabled: true
  121. # php_code_coverage: true
  122. filter:
  123. excluded_paths:
  124. - 'cli-config.php'
  125. - 'var/*'
  126. - 'config/*'
  127. - 'documentation/*'
  128. - 'app/Resources/*'
  129. - 'main/admin/db.php'
  130. - 'main/admin/ldap_synchro.php'
  131. - 'main/auth/cas/lib/*'
  132. - 'main/auth/shibboleth/*'
  133. - 'main/auth/openid/*'
  134. - 'main/chat/emoji_strategy.php'
  135. - 'main/default_course_document'
  136. - 'main/inc/lib/browser/*'
  137. - 'main/inc/lib/freemindflashbrowser/*'
  138. - 'main/inc/lib/internationalization_database/*'
  139. - 'main/inc/lib/javascript/*'
  140. - 'main/inc/lib/kses-0.2.2/*'
  141. - 'main/inc/lib/mimetex/*'
  142. - 'main/inc/lib/nanogong/*'
  143. - 'main/inc/lib/nusoap/*'
  144. - 'main/inc/lib/opengraph/*'
  145. - 'main/inc/lib/ppt2png/*'
  146. - 'main/inc/lib/phpseclib'
  147. - 'main/inc/lib/pear/*'
  148. - 'main/inc/lib/phpmailer/*'
  149. - 'main/inc/lib/phpseclib/*'
  150. - 'main/inc/lib/portfolio.class.php'
  151. - 'main/inc/lib/svg-edit/*'
  152. - 'main/inc/lib/swfobject/*'
  153. - 'main/inc/lib/wami-recorder/*'
  154. - 'main/inc/lib/xajax/*'
  155. - 'main/lp/packaging/*'
  156. - 'main/template/*'
  157. - 'main/img/*'
  158. - 'main/lang/*'
  159. - 'main/default_course_document'
  160. - 'plugin/buycourses/src/Culqi/*'
  161. - 'plugin/buycourses/src/Requests/*'
  162. - 'plugin/buycourses/src/paypalfunctions.php'
  163. - 'plugin/buycourses/src/Requests.php'
  164. - 'plugin/kannelsms/vendor/*'
  165. - 'plugin/clockworksms/vendor/*'
  166. - 'plugin/pens/lib/'
  167. - 'plugin/bbb/lib/bbb_api.php'
  168. - 'plugin/ims_lti/OAuthSimple.php'
  169. - 'plugin/sepe/src/wsse/*'
  170. - 'tests/*'
  171. - 'vendor/*'
  172. - 'public/*'