Disable the WordPress.PHP.YodaConditions.NotYoda phpcs rule (#34204)
This commit is contained in:
parent
bc98010cd3
commit
3a76aa4255
|
@ -32,6 +32,10 @@
|
||||||
<!-- Rules -->
|
<!-- Rules -->
|
||||||
<rule ref="WooCommerce-Core" />
|
<rule ref="WooCommerce-Core" />
|
||||||
|
|
||||||
|
<rule ref="WordPress.PHP">
|
||||||
|
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
|
||||||
|
</rule>
|
||||||
|
|
||||||
<rule ref="Generic.ControlStructures.DisallowYodaConditions" >
|
<rule ref="Generic.ControlStructures.DisallowYodaConditions" >
|
||||||
<include-pattern>includes/</include-pattern>
|
<include-pattern>includes/</include-pattern>
|
||||||
<type>warning</type>
|
<type>warning</type>
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Disable the WordPress.PHP.YodaConditions.NotYoda phpcs rule
|
Loading…
Reference in New Issue