Skip to content

🍕 Fix normalizeRequestedSteps complexity regression from #259 - #262

Merged
jjpaulino merged 1 commit into
masterfrom
jordan/fix-only-steps-complexity
Sep 15, 2026
Merged

jjpaulino merged 1 commit into
masterfrom
jordan/fix-only-steps-complexity

Conversation

@jjpaulino

Copy link
Copy Markdown
Member

TL;DR — for reviewers short on time


Feature Info

Description

Restores npm test on master. Discovered while rebasing #260 onto master post-#259 — flagged as its own standalone fix since master is broken for anyone right now, independent of that PR's review timeline.

🤖 Generated with Claude Code

`npx eslint lib cli index.js` -- the full lint command `npm test` actually
runs -- currently fails on master: normalizeRequestedSteps has a cyclomatic
complexity of 10 (max 8), introduced in #259 and missed there because that
PR's own verification only linted the specific files it touched, not the
full repo command. Master is broken for `npm test` right now as a result.

Splits the function into splitOnlyEntries() (CSV/repeated-flag parsing) and
classifyOnlyEntries() (recognized vs. unrecognized step names), leaving
normalizeRequestedSteps as a thin orchestrator (complexity 7). No behavior
change -- reverified the exact case #259 added: an unrecognized --only value
still throws with the same message.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage is 84.61%jordan/fix-only-steps-complexity into master. No base build found for master.

@jjpaulino
jjpaulino merged commit 00cee04 into master Sep 15, 2026
6 checks passed
@jjpaulino
jjpaulino deleted the jordan/fix-only-steps-complexity branch September 15, 2026 18:59
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