From 78c78cb20b4d068343d25fe083ca68a0b8cdc0ce Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 11 Aug 2023 17:01:32 +0000 Subject: [PATCH] Editor: Only exclude auto-generated block files from coding standards checks. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prior to this change, all block files were excluded from coding standards checks, but there's no reason these files shouldn't adhere to core's coding standards. Props lopo, Rahe, adamsilverstein  Fixes #50010 git-svn-id: https://develop.svn.wordpress.org/trunk@56392 602fd350-edb4-49c9-b593-d223f7449a82 --- phpcs.xml.dist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index f580e9f0bb..4e48c8c1c7 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -124,7 +124,8 @@ /src/wp-includes/rss\.php /src/wp-includes/assets/* - /src/wp-includes/blocks/* + /src/wp-includes/blocks/*/*.asset.php + /src/wp-includes/blocks/blocks-json.php /src/wp-includes/ID3/* /src/wp-includes/IXR/* /src/wp-includes/js/*