From 253a1fc99b6e3f16397c28db61f79f6e09096e9e Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 3 Dec 2023 17:00:22 +0100 Subject: [PATCH] Use two new sniffs from PHPCSExtra 1.2.0 PHPCSExtra 1.2.0 was released yesterday and contains two new sniffs which IMO would be suitable for adding to WordPressCS. Includes raising the minimum supported PHPCSExtra version. (will conflict with PR 2408 and will need rebase depending on which is merged first) Ref: * https://github.com/PHPCSStandards/PHPCSExtra/releases/tag/1.2.0 --- .github/CONTRIBUTING.md | 2 +- WordPress-Core/ruleset.xml | 3 +++ WordPress-Extra/ruleset.xml | 3 +++ composer.json | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index e65dae451a..eed45e0227 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -41,7 +41,7 @@ When you introduce new `public` sniff properties, or your sniff extends a class * WordPress-Coding-Standards * PHP_CodeSniffer 3.7.2 or higher * PHPCSUtils 1.0.8 or higher -* PHPCSExtra 1.1.0 or higher +* PHPCSExtra 1.2.0 or higher * PHPUnit 4.x, 5.x, 6.x or 7.x The WordPress Coding Standards use the `PHP_CodeSniffer` native unit test framework for unit testing the sniffs. diff --git a/WordPress-Core/ruleset.xml b/WordPress-Core/ruleset.xml index c38349e5c4..5396b02134 100644 --- a/WordPress-Core/ruleset.xml +++ b/WordPress-Core/ruleset.xml @@ -869,6 +869,9 @@ + + + diff --git a/WordPress-Extra/ruleset.xml b/WordPress-Extra/ruleset.xml index 54c2bd553e..8a104c84ec 100644 --- a/WordPress-Extra/ruleset.xml +++ b/WordPress-Extra/ruleset.xml @@ -180,6 +180,9 @@ + + +