<ruleset name="Omise WooCommerce">
  <description>Custom ruleset for Omise WooComemrce</description>

  <arg name="extensions" value="php" />

  <exclude-pattern>./build/*</exclude-pattern>
  <exclude-pattern>./coverage/*</exclude-pattern>
  <exclude-pattern>./vendor/*</exclude-pattern>
  <exclude-pattern>./node_modules/*</exclude-pattern>
  <exclude-pattern>./wp-content/*</exclude-pattern>
  <exclude-pattern>./templates/*</exclude-pattern>
  <exclude-pattern>.*/assets/*</exclude-pattern>

  <rule ref="WordPress">
    <exclude name="Generic.Commenting.DocComment.MissingShort" />
    <exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />

    <exclude name="Squiz.Commenting.ClassComment.Missing" />
    <exclude name="Squiz.Commenting.FileComment.Missing" />
    <exclude name="Squiz.Commenting.FunctionComment.Missing" />
    <exclude name="Squiz.Commenting.FunctionComment.MissingParamComment" />
    <exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
    <exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
    <exclude name="Squiz.Commenting.VariableComment.Missing" />

    <exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" />
    <exclude name="WordPress.PHP.YodaConditions.NotYoda" />
    <exclude name="WordPress.WP.I18n.MissingTranslatorsComment" />

    <exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
  </rule>

  <rule ref="PEAR.Functions.FunctionCallSignature">
    <properties>
      <property name="requiredSpacesAfterOpen" value="1" />
      <property name="requiredSpacesBeforeClose" value="1" />
      <property name="allowMultipleArguments" value="true" />
    </properties>
  </rule>

  <rule ref="WordPress.Security.ValidatedSanitizedInput.InputNotSanitized">
    <type>warning</type>
  </rule>
  <rule ref="WordPress.Security.ValidatedSanitizedInput.MissingUnslash">
    <type>warning</type>
  </rule>
</ruleset>
