Checkout Config
# .scrutinizer.yml
checks:
php:
code_rating: true
duplication: true
filter:
paths: ['src/*']
tools:
php_code_sniffer:
config:
standard: "PSR2"
build:
environment:
php: 7.1
tests:
override:
-
command: '/usr/local/bin/phpunit --coverage-clover=clover.xml'
coverage:
file: 'clover.xml'
format: 'clover'
project_setup:
before:
- wget https://phar.phpunit.de/phpunit.phar
- chmod +x phpunit.phar
- sudo mv phpunit.phar /usr/local/bin/phpunit
Global Config
build:
nodes:
analysis:
project_setup:
override:
- true
tests:
override:
- php-scrutinizer-run
environment:
node:
version: 6.0.0
tests: true
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: false
no_mixed_inline_html: false
require_braces_around_control_structures: false
psr2_control_structure_declaration: false
avoid_superglobals: false
security_vulnerabilities: false
no_exit: false
filter: { }
coding_style:
php: true