Checkout Config
build:
environment:
php: 7.0.6
tests:
override:
-
command: 'ant test'
coverage:
file: 'build/logs/clover.xml'
format: 'clover'
filter:
paths: [src/*]
excluded_paths: [README.md, tests/*, vendor/*, build/*, Resources/*]
checks:
php:
code_rating: true
tools:
php_analyzer:
enabled: true
extensions:
- php
external_code_coverage:
timeout: 1200
runs: 3
php_code_coverage: false
php_code_sniffer:
config:
standard: PSR2
filter:
paths: ['src']
php_loc:
enabled: true
excluded_dirs: [vendor, spec]
sensiolabs_security_checker:
enabled: true
Global Config
filter:
excluded_paths:
- 'tests/*'
checks:
php:
uppercase_constants: true
use_self_instead_of_fqcn: true
no_goto: true
newline_at_end_of_file: true
line_length:
max_length: '120'
encourage_single_quotes: true
encourage_postdec_operator: true
classes_in_camel_caps: true