290c34a27d
Added a PHPMD configuration file. Updated phpci.yml to use the configuration files. Close #913
39 lines
1,016 B
YAML
39 lines
1,016 B
YAML
build_settings:
|
|
verbose: false
|
|
ignore:
|
|
- "vendor"
|
|
- "Tests"
|
|
- "PHPCI/Command" # PHPMD complains about un-used parameters, but they are required.
|
|
- "public/install.php" # PHPCS really doesn't like PHP mixed with HTML (and so it shouldn't)
|
|
- "PHPCI/Migrations" # Ignore the migrations directory, as both PHPMD and PHPCS can't cope with them.
|
|
- "PHPCI/Model/Base" # These files are auto-generated, and sometimes hit PHPMD complexity thresholds.
|
|
- "PHPCI/Languages" # PHPCS fails on character counts for non-Latin languages
|
|
|
|
setup:
|
|
composer:
|
|
action: "install"
|
|
prefer_dist: false
|
|
|
|
test:
|
|
php_parallel_lint:
|
|
ignore:
|
|
# Only ignore vendor
|
|
- vendor/
|
|
php_mess_detector:
|
|
allowed_warnings: 0
|
|
rules:
|
|
- phpmd.xml
|
|
php_code_sniffer:
|
|
standard: phpcs.xml
|
|
allowed_warnings: 0
|
|
allowed_errors: 0
|
|
php_loc:
|
|
php_unit:
|
|
php_docblock_checker:
|
|
allowed_warnings: 0
|
|
|
|
failure:
|
|
email:
|
|
committer: true
|
|
cc: ["php-ci@googlegroups.com"]
|