From 0baa35693c4fcc5a34f386313df0f97c32d99e97 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 16 Jun 2024 19:02:19 -0400 Subject: [PATCH] Add PMD check to default build Add PMD report --- pom.xml | 20 +++++++++- src/conf/pmd-ruleset.xml | 81 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+), 1 deletion(-) create mode 100644 src/conf/pmd-ruleset.xml diff --git a/pom.xml b/pom.xml index 6c2369b4f..6d24636cd 100644 --- a/pom.xml +++ b/pom.xml @@ -139,7 +139,7 @@ Supported protocols include Echo, Finger, FTP, NNTP, NTP, POP3(S), SMTP(S), Teln - clean apache-rat:check javadoc:javadoc checkstyle:check verify japicmp:cmp + clean apache-rat:check javadoc:javadoc checkstyle:check verify japicmp:cmp pmd:check @@ -154,6 +154,15 @@ Supported protocols include Echo, Finger, FTP, NNTP, NTP, POP3(S), SMTP(S), Teln org.apache.maven.plugins maven-checkstyle-plugin + + org.apache.maven.plugins + maven-pmd-plugin + + + ${basedir}/src/conf/pmd-ruleset.xml + + + @@ -400,6 +409,15 @@ Supported protocols include Echo, Finger, FTP, NNTP, NTP, POP3(S), SMTP(S), Teln false + + org.apache.maven.plugins + maven-pmd-plugin + + + ${basedir}/src/conf/pmd-ruleset.xml + + + diff --git a/src/conf/pmd-ruleset.xml b/src/conf/pmd-ruleset.xml new file mode 100644 index 000000000..51c022c72 --- /dev/null +++ b/src/conf/pmd-ruleset.xml @@ -0,0 +1,81 @@ + + + + Excludes from default PMD rules. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +