build: move aggregate Javadoc to reporting and fix import ordering#636
Conversation
- Move aggregate Javadoc from build phase to reporting section - Prevents build forking during regular builds - Uses aggregate-no-fork goal for site generation - Javadoc now only generated during 'mvn site' - Apply import ordering via impsort-maven-plugin - Order matches checkstyle.importorder: static, com, gov, net, org, java, javax, * - Removes unused imports automatically - Export commons-cli transitively from cli-processor module
📝 WalkthroughWalkthroughReorganized and deduplicated import statements across many Java files (primarily in cli-processor and core). Updated GitHub Actions workflows to split website build into separate "Build Code" and "Build Website" steps. Made the Apache Commons CLI module requirement transitive in cli-processor's module-info.java. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
⏰ 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)
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.20.0)core/src/main/java/dev/metaschema/core/metapath/function/library/FnInnermost.java[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. core/src/main/java/dev/metaschema/core/metapath/function/library/FnDistinctValues.java[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. core/src/main/java/dev/metaschema/core/metapath/function/library/FnMonthsFromDuration.java[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 |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
core/src/main/java/dev/metaschema/core/metapath/function/library/FnMonthsFromDuration.java (1)
64-65: Comment typo: "hours" should be "months".The comment says "get the hours" but this function extracts the months component. This appears to be a copy-paste artifact from a similar duration function.
📝 Suggested fix
// day-time durations do not have months granularity ? ISequence.of(IIntegerItem.ZERO) - // get the hours + // get the months : ISequence.of(fnMonthsFromDuration((IYearMonthDurationItem) arg));
🧹 Nitpick comments (2)
core/src/main/java/dev/metaschema/core/metapath/function/library/FnInnermost.java (1)
24-28: Pre-existing Javadoc typo (optional cleanup).There's a stray
/**text on line 25 that appears to be a copy-paste artifact. This is pre-existing and not introduced by this PR, but could be cleaned up.📝 Suggested fix
/** - * /** Implements <a href= + * Implements <a href= * "https://www.w3.org/TR/xpath-functions-31/#func-innermost">fn:innermost</a> * functions. */core/src/main/java/dev/metaschema/core/metapath/function/library/FnDistinctValues.java (1)
68-68: Fix typo in Javadoc parameter description.The word "destinct" should be "distinct" in the @param documentation.
📝 Proposed fix
- * @param values - * the items to get destinct values for + * @param values + * the items to get distinct values for
- Fix comment typo in FnMonthsFromDuration.java ("hours" -> "months")
- Fix stray Javadoc artifact in FnInnermost.java
- Fix stray Javadoc artifact in FnDistinctValues.java
- Fix typo in FnDistinctValues.java ("destinct" -> "distinct")
- Update parent version to 10 (released)
|
@coderabbitai Addressed all feedback in commit 6bfc3ea:
|
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 4047 @david-waltermire, thank you for addressing all the feedback! I've verified the changes in commit 6bfc3ea, and all the fixes look good: ✅ Comment typo corrected in FnMonthsFromDuration.java The code looks clean now. Great work on this comprehensive PR improving the build process and enforcing consistent import ordering across the codebase! 🧠 Learnings used |
d63104c
into
metaschema-framework:develop
) * build: move aggregate Javadoc to reporting and fix import ordering - Move aggregate Javadoc from build phase to reporting section - Prevents build forking during regular builds - Uses aggregate-no-fork goal for site generation - Javadoc now only generated during 'mvn site' - Apply import ordering via impsort-maven-plugin - Order matches checkstyle.importorder: static, com, gov, net, org, java, javax, * - Removes unused imports automatically - Export commons-cli transitively from cli-processor module * fix: address PR feedback and update parent version - Fix comment typo in FnMonthsFromDuration.java ("hours" -> "months") - Fix stray Javadoc artifact in FnInnermost.java - Fix stray Javadoc artifact in FnDistinctValues.java - Fix typo in FnDistinctValues.java ("destinct" -> "distinct") - Update parent version to 10 (released)
Summary
Changes
Aggregate Javadoc
build/pluginstoreporting/pluginssectionaggregate-no-forkgoal to avoid lifecycle forkingmvn site, not regular buildsImport Ordering
checkstyle.importordercom.,gov.,net.,org.,java.,javax.,*Module Changes
cli-processor: Exportorg.apache.commons.clitransitivelyTest plan
mvn installcompletes without forking for Javadocmvn sitegenerates aggregate JavadocSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.