| 1 |
<?xml version="1.0"?> |
| 2 |
<ruleset name="FakerPress Coding Standards"> |
| 3 |
<rule ref="WordPress-VIP-Go"/> |
| 4 |
<rule ref="WordPress-Extra"/> |
| 5 |
<rule ref="WordPress-Core"/> |
| 6 |
<rule ref="WordPress-Docs"> |
| 7 |
<exclude-pattern>*/tests/*</exclude-pattern> |
| 8 |
</rule> |
| 9 |
<rule ref="WordPress"> |
| 10 |
<exclude name="WordPress.Files.FileName"/> |
| 11 |
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/> |
| 12 |
</rule> |
| 13 |
<rule ref="StellarWP"/> |
| 14 |
|
| 15 |
<!--exclude the rule for violation of direct DB calls as some have no alternative--> |
| 16 |
<rule ref="WordPress.DB.DirectDatabaseQuery"> |
| 17 |
<exclude-pattern>src/Test.php</exclude-pattern> |
| 18 |
</rule> |
| 19 |
|
| 20 |
<exclude-pattern>*/tests/*</exclude-pattern> |
| 21 |
<exclude-pattern>*/vendor/*</exclude-pattern> |
| 22 |
|
| 23 |
<!-- We always want short array syntax only. --> |
| 24 |
<rule ref="Generic.Arrays.DisallowLongArraySyntax" /> |
| 25 |
</ruleset> |
| 26 |
|