| 1 |
<?xml version="1.0"?> |
| 2 |
<ruleset name=""> |
| 3 |
<description>A custom set of code standard rules for the WP Discourse plugin.</description> |
| 4 |
<rule ref="WordPress"> |
| 5 |
<exclude name="Generic.Files.LowercasedFilename" /> |
| 6 |
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" /> |
| 7 |
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" /> |
| 8 |
<exclude name="PEAR.Functions.FunctionCallSignature.Indent" /> |
| 9 |
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments" /> |
| 10 |
<exclude name="WordPress.Files.FileName.InvalidClassFileName" /> |
| 11 |
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed" /> |
| 12 |
<!-- DOMDocument uses camelCase. --> |
| 13 |
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase" /> |
| 14 |
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCase" /> |
| 15 |
</rule> |
| 16 |
|
| 17 |
<rule ref="PHPCompatibility"/> |
| 18 |
|
| 19 |
<extensions>php</extensions> |
| 20 |
<exclude-pattern>*/blocks/comments/build</exclude-pattern> |
| 21 |
<exclude-pattern>*/lib/wp-new-user-notification.php*</exclude-pattern> |
| 22 |
<exclude-pattern>*/vendor/*</exclude-pattern> |
| 23 |
<exclude-pattern>*/admin/discourse-sidebar/node_modules</exclude-pattern> |
| 24 |
<exclude-pattern>*/admin/discourse-sidebar/build</exclude-pattern> |
| 25 |
<exclude-pattern>*/vendor_namespaced/*</exclude-pattern> |
| 26 |
<exclude-pattern>*.js</exclude-pattern> |
| 27 |
<exclude-pattern>*.css</exclude-pattern> |
| 28 |
<exclude-pattern>scoper.inc.php</exclude-pattern> |
| 29 |
<exclude-pattern>*/node_modules/*</exclude-pattern> |
| 30 |
|
| 31 |
<rule ref="Squiz.Commenting.FunctionComment.Missing"> |
| 32 |
<exclude-pattern>*/tests/*</exclude-pattern> |
| 33 |
</rule> |
| 34 |
<rule ref="Squiz.Commenting.InlineComment.InvalidEndChar"> |
| 35 |
<exclude-pattern>*/tests/*</exclude-pattern> |
| 36 |
</rule> |
| 37 |
<rule ref="Squiz.Commenting.FunctionComment.MissingParamTag"> |
| 38 |
<exclude-pattern>*/tests/*</exclude-pattern> |
| 39 |
</rule> |
| 40 |
<rule ref="Squiz.Commenting.FunctionComment.ParamNameNoMatch"> |
| 41 |
<exclude-pattern>*/tests/*</exclude-pattern> |
| 42 |
</rule> |
| 43 |
<rule ref="Generic.Commenting"> |
| 44 |
<exclude-pattern>*/tests/*</exclude-pattern> |
| 45 |
</rule> |
| 46 |
<rule ref="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid"> |
| 47 |
<exclude-pattern>*/tests/*</exclude-pattern> |
| 48 |
</rule> |
| 49 |
<rule ref="WordPress.DB.PreparedSQL"> |
| 50 |
<exclude-pattern>*/tests/*</exclude-pattern> |
| 51 |
</rule> |
| 52 |
</ruleset> |
| 53 |
|