build: environment: php: 8.2.10 nodes: analysis: project_setup: override: - 'true' tests: override: - php-scrutinizer-run - command: phpcs-run use_website_config: true tests: true filter: dependency_paths: ["lib/*"] excluded_paths: - 'tests/*' checks: php: true coding_style: php: spaces: around_operators: concatenation: 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. - 'project.metric("scrutinizer.quality", < 6)' # Code Quality Rating drops below 6
build: environment: php: 8.2.10 nodes: analysis: project_setup: override: - 'true' tests: override: - php-scrutinizer-run - command: phpcs-run use_website_config: true tests: true filter: dependency_paths: ["lib/*"] excluded_paths: - 'tests/*' checks: php: true coding_style: php: spaces: around_operators: concatenation: 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. - 'project.metric("scrutinizer.quality", < 6)' # Code Quality Rating drops below 6