Teach Scrutinizer to use our own standard

Based on docs, see
https://scrutinizer-ci.com/docs/tools/php/code-sniffer/

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-06-16 11:52:53 +02:00
parent c5beea64fd
commit d907030789

View File

@ -8,3 +8,15 @@ tools:
php_code_sniffer:
config:
standard: "PMAStandard"
build:
dependencies:
before:
- composer require --dev "squizlabs/php_codesniffer:2.*"
- composer require --dev "phpmyadmin/coding-standard:>=0.1.0"
tests:
override:
-
command: './vendor/bin/phpcs --standard=PMAStandard ./ --report=checkstyle --report-file=cs-data'
analysis:
file: 'cs-data' # The reporter filename
format: 'php-cs-checkstyle' # The supported format by Scrutinizer