ldc-regalette/phpcs.xml

25 lines
798 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Roots" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<description>Roots Coding Standards</description>
<!-- Scan all files in directory -->
<file>.</file>
<!-- Scan only PHP files -->
<arg name="extensions" value="php"/>
<!-- Ignore WordPress and Composer dependencies -->
<exclude-pattern>public/wp</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>public/app/plugins/*</exclude-pattern>
<!-- Show colors in console -->
<arg value="-colors"/>
<!-- Show sniff codes in all reports -->
<arg value="ns"/>
<!-- Use PSR-2 as a base -->
<rule ref="PSR2"/>
<rule ref="WordPress-VIP-Go" />
</ruleset>