Skip to content

refactor: Markdown reference links in Javadoc + checkstyle guard#32

Merged
dfa1 merged 1 commit into
mainfrom
refactor/markdown-links
Jun 27, 2026
Merged

refactor: Markdown reference links in Javadoc + checkstyle guard#32
dfa1 merged 1 commit into
mainfrom
refactor/markdown-links

Conversation

@dfa1

@dfa1 dfa1 commented Jun 27, 2026

Copy link
Copy Markdown
Owner

What

  • Converts all 57 {@link} / {@linkplain} inline tags in /// Markdown Javadoc to Markdown reference links ([ClassName#method(ParamType)]), matching the project convention.
  • Adds a checkstyle RegexpSingleline banning {@link}/{@linkplain} in /// lines so the old style can't return, mirroring the existing {@code} ban.
  • Fixes a latent bug in both rules' messages: checkstyle renders messages with MessageFormat, which threw can't parse argument number on the literal {@code}/{@link} braces whenever a violation actually fired. Reworded to avoid braces (verified the rule now fails with a readable message).

Verify

228 tests green, checkstyle 0 violations, javadoc (failOnWarnings) clean. Confirmed the new rule fires on an injected {@link} and reverts cleanly.

🤖 Generated with Claude Code

…eckstyle

Converts all 57 {@link ...} / {@linkplain ...} inline tags in /// Markdown
Javadoc to Markdown reference links ([ClassName#method(ParamType)]), matching
the project's stated convention.

Adds a checkstyle RegexpSingleline that bans {@link}/{@linkplain} in /// lines
so the old style cannot creep back, mirroring the existing {@code} ban. Also
fixes a latent bug in both rules' messages: checkstyle renders them with
MessageFormat, which threw "can't parse argument number" on the literal
{@code}/{@link} braces whenever a violation actually fired — reworded to avoid
braces.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dfa1 dfa1 merged commit c71387e into main Jun 27, 2026
1 check passed
@dfa1 dfa1 deleted the refactor/markdown-links branch June 27, 2026 15:49
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