Repository navigation
[eslint-refiner] ESLint Refiner run — 2026-11-03 (factory date 2026-10-27) #74387
Closed
Replies: 1 comment
|
This discussion was automatically closed because it expired on 2026-11-04T04:12:48.863Z.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Overview
Ran the standing ESLint Refiner mission against
eslint-factory. Followed the established priority order recorded in prior-run memory: ruleCount diff first, then HEAD's own PR files, then dedupe, then watch-list re-checks.Key metrics
no-deprecated-string-substr,no-dynamic-string-replacement)eslint-factoryissues backlog: confirmed 0 both before and after filing (the real count lives atitems[0].total_countin the search API response, not the outertotal_count— a previously-documented API quirk)eslint-factory/actions/setup/js— out of scope, consistent with prior runs' experience of the/filessub-endpoint quirkIssue filed
eslint-factory: exclude vendored/generated files from custom rule linting (work_queue_yaml.cjs) —
actions/setup/js/work_queue_yaml.cjsis a byte-for-byte vendored copy ofyaml@2.9.1(marked// @ts-nocheck,// Generated by scripts/work_queue_yaml/build.mjs), buteslint-factory/eslint.config.cjsonly excludes test files, so everygh-aw-custom/*rule still lints it. First review of the newno-deprecated-string-substrrule surfaced 13 live, true-positive-but-unactionable.substr()warnings inside this one vendored file alone — likely the first of many rules affected, since the file is a large parser full of string/regex/try-catch idioms.Review detail
.substr/["substr"]calls on any receiver. Zero false positives found — every one of the 13 live hits is a genuine.substr()call on a string. The defect is scope, not logic: the file they live in is vendored/generated and not meant to be hand-edited..replace()/.replaceAll()calls where the pattern is a string/regex literal and the replacement is a dynamic (non-literal, non-function) value, since$&/$1/$$sequences in a dynamic replacement get silently expanded. The rule's scope deliberately requires a literal pattern (s.replace(pat, value)with a variable pattern is an explicit valid test case). Checked the two live non-literal-pattern call sites in the corpus:generate_safe_outputs_tools.cjs:171—updated.replace(ADD_COMMENT_DEFAULT_DISCUSSIONS_NOTE, note). Structurally matches the gap, butnote's two possible values are static hardcoded strings with no$characters — no real risk, confounded.redact_cli_proxy_diagnostics.cjs:48—match[0].replace(pattern, replacement).replacementis dynamic, but the live caller (start_mcp_gateway.cjs:411-412) deliberately sets it to"$1[REDACTED]"for intentional regex capture-group substitution — not an accidental dynamic-value injection, so flagging it would be a false positive, not a fix. Confounded.set(Interval|Timeout|Immediate)(async...)sites corpus-wide — still exactly 1 live site (process_runner.cjs:491), still confounded by genuine unguarded trailing risk in the same callback. Not filed, not retired.Next actions
eslint.config.cjs'signoresto cover vendored/generated files (ideally by detecting the// Generated bymarker convention, not just a one-off path) would also be worth a follow-up sweep ofwork_queue_yaml.cjsagainst other already-shipped rules, sincesubstris very unlikely to be the only one that fires there.no-unguarded-async-timer-callbackfor a second, non-confounded live timer-callback site before ever filing that theory.no-dynamic-string-replacement's literal-pattern scope limit remains a real structural gap with zero clean live grounding so far — re-check on future runs if the corpus grows new.replace()/.replaceAll()call sites with a non-literal pattern.All reactions