From 60d2d8ac75c4350a45e4c6970c7d0295b757f1f0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 15 Sep 2023 10:45:18 +0000 Subject: [PATCH] Coding Standards: Remove the custom property for the `FileName` sniff. Test files should comply with the naming conventions accepted by PHPUnit, not with the WP naming conventions. While the `WordPress.File.FileName` sniff makes a best effort to prevent throwing errors for files containing test classes, the recommended manner to deal with test files is to exclude the complete test directory from being subject to this sniff. This updates the ruleset to follow the recommendation. Follow-up to [42346], [45607]. Props jrf. See #59161. git-svn-id: https://develop.svn.wordpress.org/trunk@56594 602fd350-edb4-49c9-b593-d223f7449a82 --- phpcs.xml.dist | 51 +++++--------------------------------------------- 1 file changed, 5 insertions(+), 46 deletions(-) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index a4a7fd63283db..bf97cf5ccec08 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -152,47 +152,6 @@ warning - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -343,16 +302,16 @@ /tests/phpunit/tests/multisite/site\.php + + + /tests/phpunit/* + + /src/wp-includes/template\.php - - - /tests/phpunit/tests/* - - /src/wp-admin/includes/class-wp-list-table-compat\.php