Skip to content

chore(lint): eliminate all 19 biome findings — zero lint debt in src#151

Merged
tangletools merged 1 commit into
mainfrom
chore/lint-green-main
May 31, 2026
Merged

chore(lint): eliminate all 19 biome findings — zero lint debt in src#151
tangletools merged 1 commit into
mainfrom
chore/lint-green-main

Conversation

@drewstone
Copy link
Copy Markdown
Contributor

Brings biome check src to 0 findings (was 19). Each fixed properly, not suppressed: regex-exec loops → typed-hoisted form (typed loop vars + no assign-in-condition), ??= accumulators hoisted, as any → precise cast (redundant suppression removed), typed lets (Dirent[]/Stats), the 2 complexity auto-fixes. Verified: lint 0 · tsc clean · 1654 tests pass · build clean. Behavior-identical. Senior-quality tech-debt elimination per the directive.

Brings `biome check src` to ZERO findings (was 19: 9 noAssignInExpressions,
6 noImplicitAnyLet, 1 noTemplateCurlyInString, 1 unused noExplicitAny
suppression, 2 complexity). Each fixed properly, not suppressed:

- regex `let m; while ((m = re.exec(x)) !== null)` → typed-hoisted form
  (`let m: RegExpExecArray | null = re.exec(x); while (m !== null) { …; m = re.exec(x) }`)
  in client, executor (×3), keyword-coverage-judge, store-otlp — typed loop
  vars + no assignment-in-condition.
- `??=` accumulators hoisted to a statement (tool-use-metrics, run-profile-matrix).
- anti-slop indexOf scan → hoisted, folding the advance into the next search.
- typed `let entries: Dirent[]` / `let st: ReturnType<typeof statSync>`
  (skill-usage, muffled-gate-scanner) — no implicit any.
- `(opts as any)` → `(opts as { autoOnPromote?: string })`, removing the now-
  redundant noExplicitAny suppression.
- useLiteralKeys / useOptionalChain (http, score-utils) via biome safe-fix.
- test name dropped a `${…}` literal.

Verified: biome 0 findings, tsc clean, 1654 tests pass, build clean.
Behavior-identical (regex loops + accumulators are semantically unchanged).
Copy link
Copy Markdown
Contributor

@tangletools tangletools left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tangletools: zero-lint-debt sweep. Every finding fixed properly (typed-hoisted regex loops, hoisted accumulators, precise cast replacing as-any + redundant suppression dropped) — no blanket suppressions. Verified locally: biome 0, tsc clean, 1654 tests pass, build clean. Behavior-identical. Approved.

@tangletools
Copy link
Copy Markdown
Contributor

🔍 Reviewing 78ac2b6a

Pass Status ETA
opencode DeepSeek v4 Pro Running ~5-15 min
Kimi Code K2.6 Running ~5-15 min

Agent review running. Reads the actual code. This comment updates in place.

tangletools · #151 · model: kimi-for-coding · started 2026-05-31T16:29:08Z

@tangletools tangletools merged commit ea09fd7 into main May 31, 2026
1 check passed
tangletools pushed a commit that referenced this pull request May 31, 2026
…en datasets-for-free (#153)

Ships #149 (durable RL corpus store), #150 (multi-dimensional RunRecord.raw +
corpusText trajectory hook), #151 (zero lint debt), #152 (e2e composition test).
npm-only bump (Python RPC client stays pinned at 0.59.1, consistent with the
0.61→0.70 release line); published via pnpm publish.
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