From b5f6d4e68a3ea79f0e5ab4b84b69eeb77fe5be0a Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 27 Jun 2024 08:59:32 +0200 Subject: [PATCH] [core] Update report schema location to https://pmd.github.io/schema/report_2_0_0.xsd --- docs/pages/pmd/userdocs/pmd_report_formats.md | 2 +- .../net/sourceforge/pmd/ant/xml/expected-pmd-ant-xml.xml | 2 +- .../main/java/net/sourceforge/pmd/renderers/XMLRenderer.java | 2 +- .../java/net/sourceforge/pmd/renderers/XMLRendererTest.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/pages/pmd/userdocs/pmd_report_formats.md b/docs/pages/pmd/userdocs/pmd_report_formats.md index e5c32a25be..44c0512478 100644 --- a/docs/pages/pmd/userdocs/pmd_report_formats.md +++ b/docs/pages/pmd/userdocs/pmd_report_formats.md @@ -282,7 +282,7 @@ Example: diff --git a/pmd-ant/src/test/resources/net/sourceforge/pmd/ant/xml/expected-pmd-ant-xml.xml b/pmd-ant/src/test/resources/net/sourceforge/pmd/ant/xml/expected-pmd-ant-xml.xml index 6045610122..025ce8d6d5 100644 --- a/pmd-ant/src/test/resources/net/sourceforge/pmd/ant/xml/expected-pmd-ant-xml.xml +++ b/pmd-ant/src/test/resources/net/sourceforge/pmd/ant/xml/expected-pmd-ant-xml.xml @@ -1,5 +1,5 @@ - + Test Rule 2 diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/renderers/XMLRenderer.java b/pmd-core/src/main/java/net/sourceforge/pmd/renderers/XMLRenderer.java index bddc59b842..b18c2ff0d0 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/renderers/XMLRenderer.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/renderers/XMLRenderer.java @@ -43,7 +43,7 @@ public class XMLRenderer extends AbstractIncrementingRenderer { PropertyFactory.stringProperty("encoding").desc("XML encoding format").defaultValue("UTF-8").build(); private static final String PMD_REPORT_NS_URI = "http://pmd.sourceforge.net/report/2.0.0"; - private static final String PMD_REPORT_NS_LOCATION = "http://pmd.sourceforge.net/report_2_0_0.xsd"; + private static final String PMD_REPORT_NS_LOCATION = "https://pmd.github.io/schema/report_2_0_0.xsd"; private static final String XSI_NS_PREFIX = "xsi"; private XMLStreamWriter xmlWriter; diff --git a/pmd-core/src/test/java/net/sourceforge/pmd/renderers/XMLRendererTest.java b/pmd-core/src/test/java/net/sourceforge/pmd/renderers/XMLRendererTest.java index a74589fbdf..d322d3885b 100644 --- a/pmd-core/src/test/java/net/sourceforge/pmd/renderers/XMLRendererTest.java +++ b/pmd-core/src/test/java/net/sourceforge/pmd/renderers/XMLRendererTest.java @@ -132,7 +132,7 @@ class XMLRendererTest extends AbstractRendererTest { return "" + EOL + "" + EOL; }