Disable the WordPress.PHP.YodaConditions.NotYoda phpcs rule (#34204)

This commit is contained in:
Néstor Soriano 2022-08-05 10:39:55 +02:00 committed by GitHub
parent bc98010cd3
commit 3a76aa4255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,10 @@
<!-- Rules -->
<rule ref="WooCommerce-Core" />
<rule ref="WordPress.PHP">
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
</rule>
<rule ref="Generic.ControlStructures.DisallowYodaConditions" >
<include-pattern>includes/</include-pattern>
<type>warning</type>

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Disable the WordPress.PHP.YodaConditions.NotYoda phpcs rule