.scrutinizer.yml 859 B

123456789101112131415161718192021222324252627
  1. checks:
  2. php: true
  3. coding_style:
  4. php:
  5. spaces:
  6. before_parentheses:
  7. closure_definition: true
  8. around_operators:
  9. concatenation: true
  10. build:
  11. nodes:
  12. analysis:
  13. tests:
  14. override:
  15. - php-scrutinizer-run
  16. tools:
  17. external_code_coverage:
  18. timeout: 3600
  19. build_failure_conditions:
  20. - 'elements.rating(<= C).new.exists' # No new classes/methods with a rating of C or worse allowed
  21. - 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
  22. - 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection
  23. - 'patches.label("Unused Use Statements").new.exists' # No new unused imports patches allowed