From 578956abf6fb7e6fd92444c51df35098966a182e Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 2 May 2020 18:15:30 +0000 Subject: [PATCH] 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 --- phpcs.xml.dist | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index f217dd75f8..3718c5aab1 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -143,6 +143,29 @@ /tools/* + + /src/wp-content/advanced-cache\.php + /src/wp-content/blog-deleted\.php + /src/wp-content/blog-inactive\.php + /src/wp-content/blog-suspended\.php + /src/wp-content/db-error\.php + /src/wp-content/db\.php + /src/wp-content/fatal-error-handler\.php + /src/wp-content/install\.php + /src/wp-content/maintenance\.php + /src/wp-content/object-cache\.php + /src/wp-content/php-error\.php + /src/wp-content/sunrise\.php + + + /src/wp-content/mu-plugins/* + + + /src/wp-content/plugins/* + + + /src/wp-content/themes/(?!twenty)* + /src/wp-includes/wp-db\.php