Repository Config
# .scrutinizer.yml
# Filter section: Exclude files/directories from analysis
filter:
paths: [
"src/*",
]
excluded_paths: [
"vendor/*",
"tests/*",
"docs/*",
]
# Checks section: Configure Scrutinizer's internal analysis
checks:
php:
code_rating: true
duplication: true
# Build section: Define the build and test process
build:
nodes:
analysis:
environment:
php:
version: 8.3.27
# This is where the code analysis and quality checks run
tests:
override:
# Run the main Scrutinizer PHP analysis
- php-scrutinizer-run
# You might have a separate node for running PHPUnit tests
tests:
environment:
php:
version: 8.3.27
tests:
override:
# Replace with your actual test command
- command: 'vendor/bin/phpunit --coverage-clover=clover.xml'
coverage:
file: 'clover.xml'
format: 'php-clover'