Repository navigation
Conversation
harshach
deleted the
detail/fix-docs/docs-drop-early-return-advice-from-java-reviewer-n-66fefd
branch
November 26, 2026 00:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes:
N/A — documentation-only drift fix.
I worked on
skills/agents/java-reviewer.mdbecause the Java "one return permethod" rule was promoted from a preference to a 🟡 finding, but the reviewer
agent's nesting-depth row still told reviewers to "Use early returns ... to
reduce nesting" — the exact practice the rule now forbids. A reviewer following
this guidance would flag well-formed code and suggest a banned refactor (e.g.,
recommend converting an
if/elseblock into a guard-clausereturn).The row now keeps only the two sanctioned remedies (extract methods or invert
conditions) and points at
.claude/rules/java.mdso the advice cannot drift back.Introduced by commit 5d5bb2c (@harshach, #38415)
Type of change:
High-level design:
N/A — small change (one line in one living doc).
Tests:
N/A — documentation-only; no code, schema, or UI behavior changed.
Unit tests
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
None — verified by reading the updated rule in
.claude/rules/java.md:57andAGENTS.md:93, both of which state early returns are forbidden.UI screen recording:
Not applicable — documentation-only change with no UI impact.
Checklist:
<type>: <short explanation>form.Fixes #<issue-number>above. — doc-drift fixup, no separate issue.REVIEW.md; no 🔴 findings (doc-only change).docs/decisions/2026-11-20-a-method-returns-once.md).Doc Drift PRs can be configured here.