From a2385ad54000ebb0854d67835cc38c9a1184dc08 Mon Sep 17 00:00:00 2001 From: Rutger Rademaker Date: Mon, 24 Aug 2026 10:57:22 +0200 Subject: [PATCH] chore: Update phpmd schema files to 2.0.0 Previously, testing-suite would fail `xmllint` (on itself) with a `Failed to locate the main schema resource at 'https://pmd.sourceforge.io/ruleset_xml_schema.xsd'` errors. This commit make sure to update to the correct references, while also making sure local references can be fetched (by altering the grummphp file's `xmllint.ignore.patterns`) --- CHANGELOG.md | 7 +++++++ config/default/phpmd.xml | 6 +++--- config/drupal/phpmd.xml | 4 ++-- config/magento2/phpmd.xml | 4 ++-- grumphp.yml | 10 +++++----- phpmd.xml | 5 +++-- templates/files/default/phpmd.xml | 8 ++++---- templates/files/drupal/phpmd.xml | 4 ++-- templates/files/magento2/phpmd.xml | 4 ++-- templates/files/pimcore/phpmd.xml | 6 +++--- 10 files changed, 33 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9c70e8..cea8f05 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). +## [3.1.2] +### Fixed +- `Failed to locate the main schema resource at 'https://pmd.sourceforge.io/ruleset_xml_schema.xsd'` for php 8.3 and 8.4) + +### Changed +- Update phpmd schema files to 2.0.0 (to match testing-suite's own requirements). + ## [3.1.1] ### Fixed - Magento 2 `phpmd.xml` incorrectly overrode `CouplingBetweenObjects`: the design ruleset was included twice, causing diff --git a/config/default/phpmd.xml b/config/default/phpmd.xml index 9d9bcf0..0ea4123 100644 --- a/config/default/phpmd.xml +++ b/config/default/phpmd.xml @@ -1,8 +1,8 @@ - + xsi:schemaLocation="http://pmd.github.io/schema/ruleset/2.0.0 https://pmd.github.io/schema/ruleset_2_0_0.xsd"> Default / Fallback configuration for PHPMD rulesets. - - + + \ No newline at end of file diff --git a/templates/files/drupal/phpmd.xml b/templates/files/drupal/phpmd.xml index 9e69eda..7a58947 100644 --- a/templates/files/drupal/phpmd.xml +++ b/templates/files/drupal/phpmd.xml @@ -1,8 +1,8 @@ + xsi:schemaLocation="http://pmd.github.io/schema/ruleset/2.0.0 https://pmd.github.io/schema/ruleset_2_0_0.xsd"> PHPMD diff --git a/templates/files/magento2/phpmd.xml b/templates/files/magento2/phpmd.xml index f8921c3..66b4a83 100644 --- a/templates/files/magento2/phpmd.xml +++ b/templates/files/magento2/phpmd.xml @@ -1,8 +1,8 @@ + xsi:schemaLocation="http://pmd.github.io/schema/ruleset/2.0.0 https://pmd.github.io/schema/ruleset_2_0_0.xsd"> PHPMD diff --git a/templates/files/pimcore/phpmd.xml b/templates/files/pimcore/phpmd.xml index 13132e6..76a60f0 100644 --- a/templates/files/pimcore/phpmd.xml +++ b/templates/files/pimcore/phpmd.xml @@ -1,9 +1,9 @@ + xsi:schemaLocation="http://pmd.github.io/schema/ruleset/2.0.0 https://pmd.github.io/schema/ruleset_2_0_0.xsd"> PHPMD - + \ No newline at end of file