From b3802142304fffeb622774e9da9ba58b6755a724 Mon Sep 17 00:00:00 2001 From: Otavio Santana Date: Mon, 30 Sep 2024 20:11:48 +0100 Subject: [PATCH] chore: include configuration Signed-off-by: Otavio Santana --- chapter-04/pmd/pmd-rules.xml | 30 ++++++ chapter-04/pom.xml | 46 ++++++++++ chapter-04/src/main/resources/checkstyle.xml | 96 ++++++++++++++++++++ 3 files changed, 172 insertions(+) create mode 100644 chapter-04/pmd/pmd-rules.xml create mode 100644 chapter-04/src/main/resources/checkstyle.xml diff --git a/chapter-04/pmd/pmd-rules.xml b/chapter-04/pmd/pmd-rules.xml new file mode 100644 index 0000000..a5f2c16 --- /dev/null +++ b/chapter-04/pmd/pmd-rules.xml @@ -0,0 +1,30 @@ + + + + + Remove rules + + + + + + + + + + + + + + + + + + + diff --git a/chapter-04/pom.xml b/chapter-04/pom.xml index f112f44..7a17030 100644 --- a/chapter-04/pom.xml +++ b/chapter-04/pom.xml @@ -22,6 +22,9 @@ 2.22.2 3.2.1 3.3.0 + 3.4.0 + 3.24.0 + @@ -99,6 +102,49 @@ maven-surefire-plugin ${maven.surefire.plugin.version} + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${maven.checkstyle.plugin.version} + + + verify-style + process-classes + + check + + + + + **/module-info.java,${checkstyle.excludes} + true + true + checkstyle.xml + + + + org.apache.maven.plugins + maven-pmd-plugin + ${apache.pdm.plugin.version} + + + pmd/bestpractices.xml + pmd/codestyle.xml + /category/java/security.xml + /category/java/performance.xml + + true + true + + + + + check + + + + diff --git a/chapter-04/src/main/resources/checkstyle.xml b/chapter-04/src/main/resources/checkstyle.xml new file mode 100644 index 0000000..cf78e73 --- /dev/null +++ b/chapter-04/src/main/resources/checkstyle.xml @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +