Skip to content

ci(javadoc): validate public testing.* helpers under strict doclint (Track N N5)#128

Merged
DemchaAV merged 1 commit into
developfrom
ci/javadoc-validate-testing-subpackages
Jun 3, 2026
Merged

ci(javadoc): validate public testing.* helpers under strict doclint (Track N N5)#128
DemchaAV merged 1 commit into
developfrom
ci/javadoc-validate-testing-subpackages

Conversation

@DemchaAV
Copy link
Copy Markdown
Owner

@DemchaAV DemchaAV commented Jun 3, 2026

Track N / N5 — strict doclint for public testing helpers (cycle 1.6.9)

Small build-lane follow-up to #126 / #127. The CI Javadoc validation (maven-javadoc-plugin, doclint=all, failOnError=true) only covered com.demcha.compose.document. This widens it to also include com.demcha.compose.testing, so the public testing-support helpers — testing.layout.* (semantic snapshots) and testing.visual.* (pixel regression, new in #126) — get the same strict-doclint gate.

Why

The release-profile javadoc jar is lenient (doclint=none, failOnError=false) and already ships these packages, so a Javadoc mistake in testing.* would slip through unnoticed. This closes that gap for the public testing surface.

Verification

  • ./mvnw javadoc:javadoc -pl .BUILD SUCCESS; testing.layout + testing.visual now generate apidocs and are doclint-clean (no warnings on them).
  • The ~100 pre-existing document.* template doclint warnings (e.g. CvTheme missing @return) are unchanged — they predate this PR, remain warnings (not errors), so the build stays green. Out of scope here; candidate for a separate template-Javadoc cleanup.

No artifact or runtime behaviour change.

…Track N N5)

Widen the maven-javadoc-plugin validation <subpackages> from com.demcha.compose.document to also include com.demcha.compose.testing, so the public testing-support helpers (testing.layout + testing.visual, @SInCE 1.6.9) get the same doclint=all / failOnError gate as the canonical document API.

javadoc:javadoc BUILD SUCCESS; testing.* now documented and doclint-clean (pre-existing document.* template warnings unchanged). No artifact or behaviour change.
@DemchaAV DemchaAV merged commit 07cebfc into develop Jun 3, 2026
11 checks passed
@DemchaAV DemchaAV deleted the ci/javadoc-validate-testing-subpackages branch June 3, 2026 09:31
DemchaAV added a commit that referenced this pull request Jun 3, 2026
Clear every doclint warning on the public canonical surface
(com.demcha.compose.document.*) so `mvn javadoc:javadoc` (doclint=all)
runs warning-free.

Scope was far larger than first visible: javadoc's default -Xmaxwarns=100
cap surfaced only ~100 warnings, but the true count was 929 across 142
files / 28 packages (raised the cap to enumerate the full set, then
reverted). Mix: 471 no-@param, 191 no-@return, 205 no-comment, 35
no-main-description, 16 use-of-default-constructor, 9 @deprecated-in-
package-info, 2 no-@throws.

Additive Javadoc only, with two sanctioned, behaviour-neutral exceptions:
- 16 explicit no-arg constructors in layout/definitions/* — documents the
  otherwise-synthesised public default constructor (identical behaviour);
  the repo-idiomatic fix for doclint's "use of default constructor".
- removal of the @deprecated block-tags doclint forbids in 9 package-info
  files (the @deprecated annotation + prose body already carry the notice).

No public or runtime behaviour change. Verified: javadoc:javadoc is
warning-clean under doclint=all (real CI config) and the full suite is
green (1060 tests, 0 failures, 0 errors).

Follows cycle 1.6.9 Track N (PR #128 widened javadoc validation to
testing.*); these document.* gaps predate that work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant