filter: excluded_paths: - 'tests/*' checks: php: true coding_style: php: spaces: other: after_type_cast: false build: true build_failure_conditions: - 'elements.rating(<= D).exists' # No classes/methods with a rating of D or worse - 'elements.rating(<= D).new.exists' # No new classes/methods with a rating of D or worse # allowed (useful for legacy code) - 'patches.label("Doc Comments").exists' # No doc comments patches allowed - 'patches.label("Spacing").new.count > 1' # More than 1 new spacing patch - 'issues.label("coding-style").exists' # No coding style issues allowed - 'issues.label("coding-style").new.exists' # No new coding style issues allowed - 'issues.label("coding-style").new.count > 5' # More than 5 new coding style issues. - 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity - 'project.metric("scrutinizer.quality", < 6)' # Code Quality Rating drops below 6 - 'project.metric("scrutinizer.test_coverage", < 0.60)' # Code Coverage drops below 60% # Code Coverage decreased from previous inspection - 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection by more than 10% - 'project.metric_change("scrutinizer.test_coverage", < -0.10)' tools: external_code_coverage: true