Checkout Config
checks:
php:
code_rating: true
duplication: true
filter:
excluded_paths:
- tests/
paths:
- src/
build:
environment:
php:
version: 7.1
dependencies:
override:
-
command: 'composer require "symfony/symfony:3.4.*" --no-update'
-
command: 'composer install --no-interaction -vv --profile --no-progress'
idle_timeout: 900
tests:
override:
-
command: './vendor/bin/phpspec run --format=pretty'
-
command: './vendor/bin/phpunit --coverage-clover=coverage-clover'
coverage:
file: 'coverage-clover'
format: 'php-clover'
-
command: './vendor/bin/behat --colors --strict --format=progress -vv'
Repository Config
# language: php
checks:
php:
instanceof_class_exists: true
return_doc_comments: true
phpunit_assertions: true
parameter_doc_comments: true
avoid_todo_comments: true
avoid_multiple_statements_on_same_line: true
avoid_perl_style_comments: true