testing: Move PHP_CodeSniffer settings to XML file

This commit is contained in:
Markus Frosch 2017-08-30 09:39:18 +02:00 committed by Thomas Gelf
parent bd5f9d7dea
commit b35f08c70d
2 changed files with 23 additions and 1 deletions

View File

@ -30,5 +30,5 @@ before_script:
- ./test/travis-prepare.sh
script:
- php vendor/phpcs.phar --report-width=auto --report-full --report-gitblame --report-summary -p --standard=PSR2 --extensions=php --encoding=utf-8 -w -s library/Director/ library/vendor/ipl/ application/ *.php test
- php vendor/phpcs.phar
- php vendor/phpunit.phar --testdox || phpunit --verbose

22
phpcs.xml Normal file
View File

@ -0,0 +1,22 @@
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>Sniff our code a while</description>
<file>configuration.php</file>
<file>run.php</file>
<file>run-php5.3.php</file>
<file>application/</file>
<file>library/Director/</file>
<file>library/vendor/ipl/</file>
<file>test/</file>
<arg value="wps"/>
<arg name="colors"/>
<arg name="report-width" value="auto"/>
<arg name="report-full"/>
<arg name="report-gitblame"/>
<arg name="report-summary"/>
<arg name="encoding" value="UTF-8"/>
<rule ref="PSR2"/>
</ruleset>