.scrutinizer.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. before_commands:
  2. - "composer install --prefer-source"
  3. tools:
  4. # Code Coverage
  5. external_code_coverage:
  6. enabled: true
  7. timeout: 300
  8. filter:
  9. excluded_paths:
  10. - 'docs/*'
  11. - 'examples/*'
  12. - 'extras/*'
  13. - 'test/*'
  14. - 'vendor/*'
  15. php_code_coverage:
  16. enabled: false
  17. test_command: phpunit
  18. filter:
  19. excluded_paths:
  20. - 'docs/*'
  21. - 'examples/*'
  22. - 'extras/*'
  23. - 'test/*'
  24. - 'vendor/*'
  25. # Code Sniffer
  26. php_code_sniffer:
  27. enabled: true
  28. command: phpcs
  29. config:
  30. standard: PSR2
  31. filter:
  32. excluded_paths:
  33. - 'docs/*'
  34. - 'examples/*'
  35. - 'extras/*'
  36. - 'test/*'
  37. - 'vendor/*'
  38. # Copy/Paste Detector
  39. php_cpd:
  40. enabled: true
  41. command: phpcpd
  42. excluded_dirs:
  43. - docs
  44. - examples
  45. - extras
  46. - test
  47. - vendor
  48. # PHP CS Fixer (http://http://cs.sensiolabs.org/).
  49. php_cs_fixer:
  50. enabled: true
  51. command: php-cs-fixer
  52. config:
  53. level: psr2
  54. filter:
  55. excluded_paths:
  56. - 'docs/*'
  57. - 'examples/*'
  58. - 'extras/*'
  59. - 'test/*'
  60. - 'vendor/*'
  61. # Analyzes the size and structure of a PHP project.
  62. php_loc:
  63. enabled: true
  64. command: phploc
  65. excluded_dirs:
  66. - docs
  67. - examples
  68. - extras
  69. - test
  70. - vendor
  71. # PHP Mess Detector (http://phpmd.org).
  72. php_mess_detector:
  73. enabled: true
  74. command: phpmd
  75. config:
  76. rulesets:
  77. - codesize
  78. - unusedcode
  79. - naming
  80. - design
  81. filter:
  82. excluded_paths:
  83. - 'docs/*'
  84. - 'examples/*'
  85. - 'extras/*'
  86. - 'test/*'
  87. - 'vendor/*'
  88. # Analyzes the size and structure of a PHP project.
  89. php_pdepend:
  90. enabled: true
  91. command: pdepend
  92. excluded_dirs:
  93. - docs
  94. - examples
  95. - extras
  96. - test
  97. - vendor
  98. # Runs Scrutinizer's PHP Analyzer Tool
  99. php_analyzer:
  100. enabled: true
  101. filter:
  102. excluded_paths:
  103. - 'docs/*'
  104. - 'examples/*'
  105. - 'extras/*'
  106. - 'test/*'
  107. - 'vendor/*'
  108. # Security Advisory Checker
  109. sensiolabs_security_checker: true