testing: Move PHP_CodeSniffer settings to XML file
This commit is contained in:
parent
bd5f9d7dea
commit
b35f08c70d
|
@ -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
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue