Added a sniff rule for checking the internal injection method

This commit is contained in:
Christopher Allford 2020-08-06 00:54:29 -07:00
parent 39376abfd2
commit ea92aedfcd
1 changed files with 8 additions and 0 deletions

View File

@ -31,6 +31,14 @@
<!-- Rules --> <!-- Rules -->
<rule ref="WooCommerce-Core" /> <rule ref="WooCommerce-Core" />
<rule ref="WooCommerce.Functions.InternalInjectionMethod">
<include-pattern>src/</include-pattern>
<include-pattern>tests/php/src/</include-pattern>
<properties>
<property name="injectionMethod" value="container_init"/>
</properties>
</rule>
<rule ref="WordPress.WP.I18n"> <rule ref="WordPress.WP.I18n">
<properties> <properties>
<property name="text_domain" type="array" value="woocommerce" /> <property name="text_domain" type="array" value="woocommerce" />