Build/Test Tools: Exclude plugins and themes within src
.
Just like the `build` directory, `src` can include plugins and themes which shouldn't be linted by PHPCS. Fixes #49781 git-svn-id: https://develop.svn.wordpress.org/trunk@47742 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
09e61958b3
commit
578956abf6
@ -143,6 +143,29 @@
|
||||
|
||||
<exclude-pattern>/tools/*</exclude-pattern>
|
||||
|
||||
<!-- Drop-in plugins. -->
|
||||
<exclude-pattern>/src/wp-content/advanced-cache\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-content/blog-deleted\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-content/blog-inactive\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-content/blog-suspended\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-content/db-error\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-content/db\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-content/fatal-error-handler\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-content/install\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-content/maintenance\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-content/object-cache\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-content/php-error\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-content/sunrise\.php</exclude-pattern>
|
||||
|
||||
<!-- Must-Use plugins. -->
|
||||
<exclude-pattern>/src/wp-content/mu-plugins/*</exclude-pattern>
|
||||
|
||||
<!-- Plugins. -->
|
||||
<exclude-pattern>/src/wp-content/plugins/*</exclude-pattern>
|
||||
|
||||
<!-- 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. -->
|
||||
<rule ref="WordPress.DB.RestrictedFunctions">
|
||||
<exclude-pattern>/src/wp-includes/wp-db\.php</exclude-pattern>
|
||||
|
Loading…
Reference in New Issue
Block a user