chore: exclude generated binding classes from PMD and CPD checks#622
Conversation
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
📝 WalkthroughWalkthroughTwo Maven build configuration files are updated to exclude generated binding source files from PMD and CPD static analysis checks. Exclusion patterns are added to skip generated code in both the databind module and metaschema-testing module. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (12)📓 Common learnings📚 Learning: 2025-12-24T21:21:56.361ZApplied to files:
📚 Learning: 2025-12-24T21:21:40.208ZApplied to files:
📚 Learning: 2025-12-24T21:22:07.082ZApplied to files:
📚 Learning: 2025-12-17T13:27:43.679ZApplied to files:
📚 Learning: 2025-12-30T04:19:49.192ZApplied to files:
📚 Learning: 2025-12-17T13:27:43.679ZApplied to files:
📚 Learning: 2026-01-05T16:08:37.155ZApplied to files:
📚 Learning: 2026-01-05T18:03:33.537ZApplied to files:
📚 Learning: 2026-01-05T16:33:59.206ZApplied to files:
📚 Learning: 2026-01-05T18:03:23.064ZApplied to files:
📚 Learning: 2025-12-17T13:27:43.679ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (2)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 PMD (7.19.0)metaschema-testing/pom.xml[ERROR] Cannot load ruleset pmd/category/java/custom.xml: Cannot resolve rule/ruleset reference 'pmd/category/java/custom.xml'. Make sure the resource is a valid file or URL and is on the CLASSPATH. Use --debug (or a fine log level) to see the current classpath. databind/pom.xml[ERROR] Cannot load ruleset pmd/category/java/custom.xml: Cannot resolve rule/ruleset reference 'pmd/category/java/custom.xml'. Make sure the resource is a valid file or URL and is on the CLASSPATH. Use --debug (or a fine log level) to see the current classpath. Comment |
3ef8573
into
metaschema-framework:develop
Summary
Changes
databind/pom.xml:
**/dev/metaschema/databind/model/metaschema/binding/*.java**/dev/metaschema/databind/config/binding/*.javametaschema-testing/pom.xml:
**/dev/metaschema/model/testing/testsuite/**/*.javaTest plan
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.