From 0bd90d1fc0e693b45464c7d94296f342e00977d2 Mon Sep 17 00:00:00 2001 From: Dan Wallis Date: Thu, 28 Mar 2024 14:52:46 +0000 Subject: [PATCH 1/2] Make exclusion list more specific --- CHANGELOG.md | 7 +++++++ src/YouweMagento2/ruleset.xml | 25 ++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c49c037..9490a98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 2.2.0 +## Changed +- Apply more rules to .html and .phtml files. In previous updates (see pull requests [#5] and [#10]), we excluded these files very widely; this change makes the exclusion more specific and intentional. + +[#5]: https://github.com/YouweGit/coding-standard-magento2/pull/5 +[#10]: https://github.com/YouweGit/coding-standard-magento2/pull/10 + ## 2.1.3 ### Fixed - Youwe ruleset will not check .html files any more. See also version 2.1.0. diff --git a/src/YouweMagento2/ruleset.xml b/src/YouweMagento2/ruleset.xml index 002d321..b4ae002 100644 --- a/src/YouweMagento2/ruleset.xml +++ b/src/YouweMagento2/ruleset.xml @@ -26,7 +26,6 @@ - *.p?html @@ -49,4 +48,28 @@ + + + *.p?html + *.p?html + *.p?html + *.p?html + *.p?html + *.p?html + *.p?html + *.p?html + *.p?html + *.p?html + *.p?html + *.p?html + *.p?html From 435171c7fd14e69591fc8ba6231c0d58621efb2c Mon Sep 17 00:00:00 2001 From: Dan Wallis Date: Thu, 18 Apr 2024 12:59:23 +0100 Subject: [PATCH 2/2] Exclude XML files from these checks too --- src/YouweMagento2/ruleset.xml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/YouweMagento2/ruleset.xml b/src/YouweMagento2/ruleset.xml index b4ae002..498872a 100644 --- a/src/YouweMagento2/ruleset.xml +++ b/src/YouweMagento2/ruleset.xml @@ -58,18 +58,19 @@ template files. We can't use a single directive in the block above, as that would also apply to any sniffs which are in both standards. + And XML files are excluded here too. --> - *.p?html - *.p?html - *.p?html - *.p?html - *.p?html - *.p?html - *.p?html - *.p?html - *.p?html - *.p?html - *.p?html - *.p?html - *.p?html + *.(x|p?ht)ml$ + *.(x|p?ht)ml$ + *.(x|p?ht)ml$ + *.(x|p?ht)ml$ + *.(x|p?ht)ml$ + *.(x|p?ht)ml$ + *.(x|p?ht)ml$ + *.(x|p?ht)ml$ + *.(x|p?ht)ml$ + *.(x|p?ht)ml$ + *.(x|p?ht)ml$ + *.(x|p?ht)ml$ + *.(x|p?ht)ml$