Skip to content

Make the repository lint-clean - #68

Merged
vigneshwerv merged 1 commit into
devfrom
claude/lint-clean
Aug 10, 2026
Merged

Make the repository lint-clean#68
vigneshwerv merged 1 commit into
devfrom
claude/lint-clean

Conversation

@snoble

@snoble snoble commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Written by Claude, running in Steven's session — these are Claude's words and judgements, not Steven's.

Stacked on #67. Style only; no behaviour changes, and no test outcomes change.

To be clear about what was and was not broken: all 94 tests pass, on Ruby 3.2.8, 3.3.8 and 3.4.3. CI gates rake test, the schema freshness check, the GraphQL name grep, srb tc and the snapshot check — RuboCop is not among them, so nothing here was blocking a merge. But #56 added a rake lint task, and leaving it reporting eighteen offences is a trap for whoever wires it into CI.

What changed

Twenty-five offences autocorrected, almost all argument alignment and parallel assignment in the pre-existing OAuth conformance tests.

Two needed a decision:

create_token was over both AbcSize and MethodLength. Building the request moves out to token_request, which is worth naming on its own — it is where RFC 6749's client_credentials grant and Basic auth actually happen. The four spec tests around it pass unchanged, which is the check that matters for a method this sensitive.

Metrics/AbcSize is now excluded for test/**/*. An assertion-heavy test scores high on ABC by counting assertions; that is not a signal worth acting on. The same reasoning already excludes Metrics/CyclomaticComplexity there.

Why at the top of the stack

The offences span lib/fragment_client.rb, .rubocop.yml and test/unit_test.rb, which three different PRs touch. Threading a style pass down through all of them risks conflicts for no gain while RuboCop is ungated. The consequence is that intermediate branches stay lint-dirty and only the final state is clean — worth knowing if you merge partially.

Verified

rubocop: 29 files, no offences. rake test: 94 runs, 0 failures. srb tc: clean. Live suite: 4 runs, 0 failures, no leftover ledgers.

🤖 Generated with Claude Code

@vigneshwerv
vigneshwerv force-pushed the claude/experimental-opt-in branch from 838dece to 8e20986 Compare August 10, 2026 21:18
@vigneshwerv
vigneshwerv force-pushed the claude/experimental-opt-in branch from 8e20986 to be3cf9f Compare August 10, 2026 21:23
@vigneshwerv
vigneshwerv force-pushed the claude/experimental-opt-in branch from be3cf9f to ba67611 Compare August 10, 2026 21:39
@vigneshwerv
vigneshwerv force-pushed the claude/experimental-opt-in branch from ba67611 to fbc0cb6 Compare August 10, 2026 22:25
@vigneshwerv
vigneshwerv force-pushed the claude/experimental-opt-in branch from fbc0cb6 to 47b0ec2 Compare August 10, 2026 22:38
@vigneshwerv
vigneshwerv changed the base branch from claude/experimental-opt-in to dev August 10, 2026 23:18
`rake lint` reported eighteen offences, none of them in CI and none of them test
failures -- but the task exists now, so leaving it red is a trap for whoever wires
it up.

Twenty-five were autocorrected, almost all argument alignment and parallel
assignment in the pre-existing OAuth conformance tests.

Two needed a decision:

`create_token` was over both AbcSize and MethodLength. Building the request moves to
`token_request`, which is a thing worth naming on its own -- it is where RFC 6749's
client_credentials grant and Basic auth actually happen, and the four spec tests
around it pass unchanged.

`Metrics/AbcSize` is now excluded for `test/**/*`. An assertion-heavy test scores
high on ABC by counting assertions, which is not a signal worth acting on; the same
reasoning already excludes `Metrics/CyclomaticComplexity` there.

At the top of the stack rather than amended into the branches that own these files:
the offences span `lib/fragment_client.rb`, `.rubocop.yml` and `test/unit_test.rb`,
which three different PRs touch, and threading a style pass through all of them
risks conflicts for no gain when RuboCop is not gated.
@vigneshwerv
vigneshwerv merged commit d9082e6 into dev Aug 10, 2026
7 checks passed
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.

2 participants