Added a sniff rule for checking the internal injection method
This commit is contained in:
parent
39376abfd2
commit
ea92aedfcd
|
@ -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" />
|
||||||
|
|
Loading…
Reference in New Issue