From cd16c596808069d01c786831cd2c428080266fcf Mon Sep 17 00:00:00 2001 From: "K. Adam White" Date: Fri, 26 Jun 2026 13:03:51 -0400 Subject: [PATCH 1/3] Exclude @wordpress/scripts-generated *.asset.php files from certain rules --- CHANGELOG.md | 4 ++++ HM/ruleset.xml | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41718999..69d4f94d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ +## 2.3.0 + +- Exempt wp-scripts-generated `*.asset.php` manifests under `build/` and `dist/` from the file-name and file-doc-comment rules + ## 2.2.1 - Do not flag get_block_wrapper_attributes as an escaping risk, this is a false positive as function escapes internally #340 diff --git a/HM/ruleset.xml b/HM/ruleset.xml index 11c980d0..b4904fe5 100644 --- a/HM/ruleset.xml +++ b/HM/ruleset.xml @@ -108,6 +108,14 @@ + + + */(build|dist)/*\.asset\.php$ + + + */(build|dist)/*\.asset\.php$ + + + */(build|dist)/*\.asset\.php$ @@ -108,14 +110,6 @@ - - - */(build|dist)/*\.asset\.php$ - - - */(build|dist)/*\.asset\.php$ - - - */(build|dist)/*\.asset\.php$ + + build/* + dist/*