From 68b2be5776e01537382f07cd2f475590f23e4475 Mon Sep 17 00:00:00 2001 From: "dotasek.dev" Date: Wed, 11 Dec 2024 16:22:45 -0500 Subject: [PATCH] Only instantiate DocumentBuilderFactory in a single location --- checkstyle.xml | 59 +++++++++++++++++++ checkstyle_suppressions.xml | 8 +++ master-branch-pipeline.yml | 2 +- pom.xml | 38 ++++++++++++ pull-request-pipeline.yml | 1 + release-branch-pipeline.yml | 4 +- .../java/org/fhir/ucum/utils/XmlUtils.java | 2 + 7 files changed, 111 insertions(+), 3 deletions(-) create mode 100644 checkstyle.xml create mode 100644 checkstyle_suppressions.xml diff --git a/checkstyle.xml b/checkstyle.xml new file mode 100644 index 0000000..358a043 --- /dev/null +++ b/checkstyle.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/checkstyle_suppressions.xml b/checkstyle_suppressions.xml new file mode 100644 index 0000000..672ec90 --- /dev/null +++ b/checkstyle_suppressions.xml @@ -0,0 +1,8 @@ + + + + + + diff --git a/master-branch-pipeline.yml b/master-branch-pipeline.yml index abd33c3..3667b99 100644 --- a/master-branch-pipeline.yml +++ b/master-branch-pipeline.yml @@ -58,7 +58,7 @@ steps: inputs: mavenPomFile: 'pom.xml' mavenOptions: '-Xmx3072m' - options: '--settings $(System.DefaultWorkingDirectory)/settings.xml' + options: '--settings $(System.DefaultWorkingDirectory)/settings.xml -P CHECKSTYLE' javaHomeOption: 'JDKVersion' jdkVersionOption: '1.11' jdkArchitectureOption: 'x64' diff --git a/pom.xml b/pom.xml index ee94a24..c87e824 100644 --- a/pom.xml +++ b/pom.xml @@ -173,6 +173,14 @@ + + maven-checkstyle-plugin + 3.2.0 + + true + + +