WPCS: Allow for typical theme specific file names based on the theme hierarchy.

Ref: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#themes-allow-filename-exceptions
This commit is contained in:
jrfnl 2017-06-12 01:10:43 +02:00 committed by jrfnl
parent 67d6d59235
commit 755619e74d
1 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,14 @@
</properties> </properties>
</rule> </rule>
<!-- Allow for theme specific exceptions to the file name rules based
on the theme hierarchy. -->
<rule ref="WordPress.Files.FileName">
<properties>
<property name="is_theme" value="true" />
</properties>
</rule>
<!-- Include sniffs for PHP cross-version compatibility. --> <!-- Include sniffs for PHP cross-version compatibility. -->
<config name="testVersion" value="5.2-99.0"/> <config name="testVersion" value="5.2-99.0"/>
<rule ref="PHPCompatibility"/> <rule ref="PHPCompatibility"/>