You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trim the round's comments to what only the code can say
fullstack-lint. CI linters were already green with their exact flags (rubocop
64/0; brakeman --force --no-progress --quiet --no-pager 0/0; rspec 598/0). This
is the judgment half.
The concern had drifted to 38% comments — the same file the last lint round cut
to 29%, and the same cause: duplication rather than documentation.
- `mcp_oauth_loopback_redirect_uri?` carried a 17-line restatement of
`oauth_allow_loopback_redirects`' rationale. That argument belongs where the
setting lives; here it is now a pointer plus the parsing detail, which is the
only part this file alone can say.
- `mcp_oauth_encryptor` had 22 comment lines over 6 of code, re-explaining why the
signing secret exists — which is `Configuration#oauth_signing_secret`'s job.
Kept: why HMAC, why no KDF, and why NullSerializer specifically, since that one
reads like a redundant option and is the reason Marshal never sees the payload.
- Dropped a comment that had already gone stale within this branch: it justified
building the callback URL by string partly because "a host may legitimately
allowlist an opaque URI" — untrue since the same round made that an
ArgumentError at config time. Exactly the failure mode this round exists to
fix, so it does not get to ship.
Down to 34%, over four more methods than the file had. RSpec pass clean: no
anonymous subjects, no `create(` (the suite is Rails-free), no ticket references
or commented-out code in the diff. View rules N/A — the template carries no JS,
and simple_form is deliberately not a dependency of a dependency-light gem.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments