| 1 |
<ruleset name="Omise WooCommerce"> |
| 2 |
<description>Custom ruleset for Omise WooComemrce</description> |
| 3 |
|
| 4 |
<arg name="extensions" value="php" /> |
| 5 |
|
| 6 |
<exclude-pattern>./build/*</exclude-pattern> |
| 7 |
<exclude-pattern>./coverage/*</exclude-pattern> |
| 8 |
<exclude-pattern>./vendor/*</exclude-pattern> |
| 9 |
<exclude-pattern>./node_modules/*</exclude-pattern> |
| 10 |
<exclude-pattern>./wp-content/*</exclude-pattern> |
| 11 |
<exclude-pattern>./templates/*</exclude-pattern> |
| 12 |
<exclude-pattern>.*/assets/*</exclude-pattern> |
| 13 |
|
| 14 |
<rule ref="WordPress"> |
| 15 |
<exclude name="Generic.Commenting.DocComment.MissingShort" /> |
| 16 |
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" /> |
| 17 |
|
| 18 |
<exclude name="Squiz.Commenting.ClassComment.Missing" /> |
| 19 |
<exclude name="Squiz.Commenting.FileComment.Missing" /> |
| 20 |
<exclude name="Squiz.Commenting.FunctionComment.Missing" /> |
| 21 |
<exclude name="Squiz.Commenting.FunctionComment.MissingParamComment" /> |
| 22 |
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" /> |
| 23 |
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" /> |
| 24 |
<exclude name="Squiz.Commenting.VariableComment.Missing" /> |
| 25 |
|
| 26 |
<exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" /> |
| 27 |
<exclude name="WordPress.PHP.YodaConditions.NotYoda" /> |
| 28 |
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment" /> |
| 29 |
|
| 30 |
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" /> |
| 31 |
</rule> |
| 32 |
|
| 33 |
<rule ref="PEAR.Functions.FunctionCallSignature"> |
| 34 |
<properties> |
| 35 |
<property name="requiredSpacesAfterOpen" value="1" /> |
| 36 |
<property name="requiredSpacesBeforeClose" value="1" /> |
| 37 |
<property name="allowMultipleArguments" value="true" /> |
| 38 |
</properties> |
| 39 |
</rule> |
| 40 |
|
| 41 |
<rule ref="WordPress.Security.ValidatedSanitizedInput.InputNotSanitized"> |
| 42 |
<type>warning</type> |
| 43 |
</rule> |
| 44 |
<rule ref="WordPress.Security.ValidatedSanitizedInput.MissingUnslash"> |
| 45 |
<type>warning</type> |
| 46 |
</rule> |
| 47 |
</ruleset> |
| 48 |
|