mirror of
git://develop.git.wordpress.org/
synced 2025-01-16 20:38:35 +01:00
Docs: Use more inclusive language in PHPCS configuration files.
Follow-up to [42346], [43348], [45455], [46290], [46820], [48121], [48477]. See #55646, #55647. git-svn-id: https://develop.svn.wordpress.org/trunk@53800 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
da50ef9aed
commit
6048dd6e58
@ -82,7 +82,7 @@
|
||||
<exclude-pattern>/random_compat/random_bytes_mcrypt\.php$</exclude-pattern>
|
||||
</rule>
|
||||
|
||||
<!-- Whitelist the WP DB Class for use of `mysql_` extension in PHP < 7.0. -->
|
||||
<!-- Allow the WP DB Class for use of `mysql_` extension in PHP < 7.0. -->
|
||||
<rule ref="PHPCompatibility.Extensions.RemovedExtensions.mysql_DeprecatedRemoved">
|
||||
<exclude-pattern>/src/wp-includes/class-wpdb\.php</exclude-pattern>
|
||||
</rule>
|
||||
|
@ -163,13 +163,13 @@
|
||||
<!-- Themes except the twenty* themes. -->
|
||||
<exclude-pattern>/src/wp-content/themes/(?!twenty)*</exclude-pattern>
|
||||
|
||||
<!-- Whitelist the WP DB Class and related tests for usage of direct database access functions. -->
|
||||
<!-- Allow the WP DB Class and related tests for usage of direct database access functions. -->
|
||||
<rule ref="WordPress.DB.RestrictedFunctions">
|
||||
<exclude-pattern>/src/wp-includes/class-wpdb\.php</exclude-pattern>
|
||||
<exclude-pattern>/tests/phpunit/tests/db/charset\.php</exclude-pattern>
|
||||
</rule>
|
||||
|
||||
<!-- Whitelist the WP DB related tests for issues with prepared SQL placeholders
|
||||
<!-- Allow the WP DB related tests for issues with prepared SQL placeholders
|
||||
(as the handling of those are being tested). -->
|
||||
<rule ref="WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare">
|
||||
<exclude-pattern>/tests/phpunit/tests/db\.php</exclude-pattern>
|
||||
@ -185,7 +185,7 @@
|
||||
<exclude-pattern>/tests/phpunit/tests/multisite/site\.php</exclude-pattern>
|
||||
</rule>
|
||||
|
||||
<!-- Whitelist the I18n functions file from issues identified by the I18n sniff
|
||||
<!-- Allow the I18n functions file for issues identified by the I18n sniff
|
||||
(such as calling the low-level translate() function). -->
|
||||
<rule ref="WordPress.WP.I18n">
|
||||
<exclude-pattern>/src/wp-includes/l10n\.php</exclude-pattern>
|
||||
@ -207,7 +207,7 @@
|
||||
|
||||
<!-- Exclude checking of line endings when reporting errors, but fix them when running phpcbf.
|
||||
Git and SVN manage these pretty well cross-platform as "native".
|
||||
Whitelist configuration files. -->
|
||||
Allow configuration files. -->
|
||||
<rule ref="Generic.Files.LineEndings">
|
||||
<exclude-pattern>/wp-config\.php</exclude-pattern>
|
||||
<exclude-pattern>/wp-config-sample\.php</exclude-pattern>
|
||||
@ -227,7 +227,7 @@
|
||||
<exclude-pattern>/src/wp-content/themes/twentyfourteen/taxonomy-post_format\.php</exclude-pattern>
|
||||
</rule>
|
||||
|
||||
<!-- Whitelist test classes for select sniffs. -->
|
||||
<!-- Allow test classes for select sniffs. -->
|
||||
<rule ref="WordPress.Files.FileName">
|
||||
<properties>
|
||||
<property name="custom_test_class_whitelist" type="array">
|
||||
|
Loading…
x
Reference in New Issue
Block a user