Add basic squizlabs/php_codesniffer configuration

This commit is contained in:
Chris Wilkinson
2018-08-17 16:02:44 +01:00
parent 15e40f27cd
commit 9570cbcf9c
2 changed files with 28 additions and 0 deletions
@@ -0,0 +1,9 @@
{
"copy-from-recipe": {
"phpcs.xml.dist": "phpcs.xml.dist"
},
"gitignore": [
"/.phpcs-cache",
"/phpcs.xml"
]
}
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<arg name="basepath" value="."/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<rule ref="PSR2"/>
<file>bin/</file>
<file>config/</file>
<file>public/</file>
<file>src/</file>
<file>tests/</file>
</ruleset>