| 1 |
<?xml version="1.0" ?> |
| 2 |
<ruleset name="WPUmami"> |
| 3 |
<description>WPUmami coding standard</description> |
| 4 |
|
| 5 |
<!-- Exclude files and directories. --> |
| 6 |
<exclude-pattern>/vendor/*</exclude-pattern> |
| 7 |
<exclude-pattern>/node_modules/*</exclude-pattern> |
| 8 |
<exclude-pattern>*.js</exclude-pattern> |
| 9 |
<exclude-pattern>*.css</exclude-pattern> |
| 10 |
|
| 11 |
<!-- Include the WordPress Coding Standards --> |
| 12 |
<rule ref="WordPress-Extra"> |
| 13 |
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralText" /> |
| 14 |
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/> |
| 15 |
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/> |
| 16 |
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/> |
| 17 |
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/> |
| 18 |
</rule> |
| 19 |
|
| 20 |
<rule ref="WordPress-Docs"> |
| 21 |
<exclude name="Squiz.Commenting.FileComment.Missing"/> |
| 22 |
</rule> |
| 23 |
|
| 24 |
<rule ref="PSR2.Namespaces.NamespaceDeclaration"/> |
| 25 |
<rule ref="PSR2.Namespaces.UseDeclaration"/> |
| 26 |
|
| 27 |
|
| 28 |
<rule ref="Generic.Files.LineLength"> |
| 29 |
<properties> |
| 30 |
<property name="lineLimit" value="200" /> |
| 31 |
<property name="absoluteLineLimit" value="200" /> |
| 32 |
</properties> |
| 33 |
</rule> |
| 34 |
|
| 35 |
<config name="testVersion" value="7.4-"/> |
| 36 |
<rule ref="PHPCompatibility"> |
| 37 |
<include-pattern>*\.php$</include-pattern> |
| 38 |
</rule> |
| 39 |
</ruleset> |
| 40 |
|