You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2023/04/11 06:34:09 UTC

[shardingsphere] branch master updated: Rename pmd.xml (#25096)

This is an automated email from the ASF dual-hosted git repository.

panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 1485f54116a Rename pmd.xml (#25096)
1485f54116a is described below

commit 1485f54116a71c7db3e76b7ca342bce02c76cd1c
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Tue Apr 11 14:34:01 2023 +0800

    Rename pmd.xml (#25096)
---
 pom.xml                                | 5 +++++
 src/resources/{ruleset.xml => pmd.xml} | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index dd8f9861fc7..e7251bf0468 100644
--- a/pom.xml
+++ b/pom.xml
@@ -903,6 +903,11 @@
                         <aggregate>true</aggregate>
                         <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
                         <targetJdk>${java.version}</targetJdk>
+                        <configuration>
+                            <rulesets>
+                                <ruleset>src/resources/pmd.xml</ruleset>
+                            </rulesets>
+                        </configuration>
                     </configuration>
                 </plugin>
                 <plugin>
diff --git a/src/resources/ruleset.xml b/src/resources/pmd.xml
similarity index 95%
rename from src/resources/ruleset.xml
rename to src/resources/pmd.xml
index 99a36e415ff..7dbcff7ddda 100644
--- a/src/resources/ruleset.xml
+++ b/src/resources/pmd.xml
@@ -16,8 +16,8 @@
   ~ limitations under the License.
   -->
 
-<ruleset xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="full-pmd-ruleset" xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
-    <description>Full 5.1.1 PMD rule set</description>
+<ruleset xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         name="full-pmd-ruleset" xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
     <exclude-pattern>.*/target/.*</exclude-pattern>
     <rule ref="rulesets/java/basic.xml" />
     <rule ref="rulesets/ecmascript/basic.xml" />