Updated the php_codesniffer required version and added a default phpcs.xml.

Added a PHPMD configuration file.
Updated phpci.yml to use the configuration files.

Close #913
This commit is contained in:
Adirelle 2015-04-14 09:43:21 +02:00 committed by Tobias van Beek
commit cd1210e1e8
5 changed files with 52 additions and 8 deletions

19
phpcs.xml Normal file
View file

@ -0,0 +1,19 @@
<?xml version="1.0"?>
<ruleset name="PHPCI">
<description>Codestyle ruleset for PHPCI</description>
<rule ref="PSR2"/>
<file>PHPCI</file>
<arg name="encoding" value="UTF-8"/>
<arg name="extensions" value="php"/>
<exclude-pattern>PHPCI/Migrations/*</exclude-pattern>
<exclude-pattern>PHPCI/Model/Base/*</exclude-pattern>
<exclude-pattern>PHPCI/Languages/*</exclude-pattern>
<exclude-pattern>Tests/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
</ruleset>