Update phpcs.xml.dist

This commit is contained in:
Paul Kevan 2024-06-26 14:33:57 +01:00 committed by GitHub
parent 1ff6678749
commit 8bc7efcb59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,6 +92,10 @@
<!-- print_r() is perfectly accepted in some circumstances, like WP_CLI commands. -->
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_print_r" />
<!-- Exclude short array syntax as it is consistently already in the codebase :) -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
</rule>
<!-- Ignore the CPT template filename, since it is based on the CPT name, and can't change. -->
@ -132,9 +136,6 @@
<!-- WordPress have translators comment which requires no space after `//` -->
<exclude name="Squiz.Commenting.InlineComment.NoSpaceBefore" />
<!-- Exclude short array syntax as it is consistently already in the codebase :) -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
</rule>
<rule ref="WordPress-Extra">