2015-03-04 11:12:39 +01:00
|
|
|
imports:
|
|
|
|
- php
|
|
|
|
|
|
|
|
filter:
|
2015-03-16 16:29:32 +01:00
|
|
|
excluded_paths:
|
|
|
|
- test/
|
|
|
|
- webroot/check*
|
|
|
|
- webroot/imgd.php
|
|
|
|
- webroot/imgp.php
|
|
|
|
- webroot/imgs.php
|
|
|
|
- webroot/test/
|
2015-03-16 16:19:23 +01:00
|
|
|
|
|
|
|
checks:
|
|
|
|
php:
|
|
|
|
code_rating: true
|
|
|
|
duplication: true
|
2015-03-04 11:12:39 +01:00
|
|
|
|
|
|
|
tools:
|
2015-03-16 16:05:57 +01:00
|
|
|
# Copy/Paste Detector
|
2015-03-16 16:29:32 +01:00
|
|
|
php_cpd: true
|
|
|
|
|
|
|
|
# Metrics
|
|
|
|
php_pdepend: true
|
|
|
|
|
2015-03-16 16:05:57 +01:00
|
|
|
# Some Metrics + Bug Detection/Auto-Fixes
|
2015-03-16 16:29:32 +01:00
|
|
|
php_analyzer: true
|
|
|
|
|
|
|
|
php_code_sniffer:
|
|
|
|
config:
|
|
|
|
standard: "PSR2"
|
|
|
|
|
|
|
|
php_sim:
|
2015-03-16 16:05:57 +01:00
|
|
|
min_mass: 16 # Defaults to 16
|
2015-03-16 16:29:32 +01:00
|
|
|
|
|
|
|
php_mess_detector:
|
2015-03-16 16:05:57 +01:00
|
|
|
#config:
|
|
|
|
# ruleset: ../your-phpmd-ruleset/ruleset.xml
|
2015-03-16 16:29:32 +01:00
|
|
|
|
2015-03-16 16:05:57 +01:00
|
|
|
build:
|
|
|
|
tests:
|
|
|
|
override:
|
|
|
|
-
|
|
|
|
command: 'phpunit'
|
|
|
|
coverage:
|
|
|
|
file: 'coverage.clover'
|
|
|
|
format: 'php-clover'
|