Skip to content

Commit 3ef8573

Browse files
chore: exclude generated binding classes from PMD and CPD checks (#622)
Add PMD excludes for generated binding classes that were being flagged for code style violations and duplicate code detection. These classes are auto-generated from Metaschema modules and should not be subject to static analysis. Excluded packages: - databind: model/metaschema/binding and config/binding - metaschema-testing: model/testing/testsuite
1 parent 4ea14e1 commit 3ef8573

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

databind/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@
103103
<ruleset>src/main/config/pmd/ruleset.xml</ruleset>
104104
<ruleset>src/main/config/pmd/field-naming-ruleset.xml</ruleset>
105105
</rulesets>
106+
<!-- Exclude generated binding classes from PMD and CPD -->
107+
<excludes>
108+
<exclude>**/dev/metaschema/databind/model/metaschema/binding/*.java</exclude>
109+
<exclude>**/dev/metaschema/databind/config/binding/*.java</exclude>
110+
</excludes>
106111
</configuration>
107112
</plugin>
108113
<plugin>

metaschema-testing/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@
7373
<ruleset>src/main/config/pmd/ruleset.xml</ruleset>
7474
<ruleset>src/main/config/pmd/field-naming-ruleset.xml</ruleset>
7575
</rulesets>
76+
<!-- Exclude generated binding classes from PMD and CPD -->
77+
<excludes>
78+
<exclude>**/dev/metaschema/model/testing/testsuite/**/*.java</exclude>
79+
</excludes>
7680
</configuration>
7781
</plugin>
7882
</plugins>

0 commit comments

Comments
 (0)