36 lines
1.3 KiB
XML
36 lines
1.3 KiB
XML
<?xml version="1.0"?>
|
|
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="LF" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
|
|
|
|
<description>A custom set of rules to check for a WPized WordPress project</description>
|
|
|
|
<file>./web/wp-content/themes/</file>
|
|
<file>./web/wp-content/mu-plugins/wp-mu-plugins/</file>
|
|
|
|
<exclude-pattern>*/node_modules/*</exclude-pattern>
|
|
<exclude-pattern>*/vendor/*</exclude-pattern>
|
|
<exclude-pattern>*/build/*</exclude-pattern>
|
|
<exclude-pattern>*/dist/*</exclude-pattern>
|
|
<exclude-pattern>*/uploads/*</exclude-pattern>
|
|
<exclude-pattern>*/plugins/*</exclude-pattern>
|
|
<exclude-pattern>*/scripts/*</exclude-pattern>
|
|
<exclude-pattern>*gulpfile*</exclude-pattern>
|
|
<exclude-pattern>*pantheon*</exclude-pattern>
|
|
|
|
<!-- Exclude the Composer Vendor directory. -->
|
|
<exclude-pattern>/vendor/*</exclude-pattern>
|
|
|
|
<!-- Exclude the Node Modules directory. -->
|
|
<exclude-pattern>/node_modules/*</exclude-pattern>
|
|
|
|
<!-- Exclude Javascript files. -->
|
|
<exclude-pattern>*.min.js</exclude-pattern>
|
|
<exclude-pattern>*.js</exclude-pattern>
|
|
|
|
<!-- Exclude CSS files. -->
|
|
<exclude-pattern>*.css</exclude-pattern>
|
|
|
|
<!-- Check up to 8 files simultaneously. -->
|
|
<arg name="parallel" value="8"/>
|
|
|
|
<rule ref="WordPress"/>
|
|
</ruleset> |