Repository navigation
[eslint-refiner] require-fs-sync-try-catch refinement report 2026-12-06 #85016
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by ESLint Refiner. A newer discussion is available at Discussion #85021. |
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.
Warning
Threat detection engine error
Threat detection could not complete its analysis due to a tooling error. This is not a security finding.
What happened
The threat detection results could not be parsed.
Review the workflow run logs to troubleshoot the error.
Detection performed by:
claude-haiku-5-5Overview
Reviewed
require-fs-sync-try-catch(rule, tests, shared resolver intry-catch-rule-utils.ts) againstactions/setup/js. The two findings from 2026-07-08 (destructured bindings, catch-less try/finally) are fixed and covered by tests. Three new refinement issues were filed.Key metrics
gh issue listwas unavailable in this run)Findings
require("fs").readFileSyncis not flagged.allowInlineRequireis unused. Live FNs:work_queue_conformance_checks.cjs:188andwork_queue_test_helpers.cjs:241.const x = fs.readFileSync(...)gets no suggestion. The message hardcodesfs.for aliases and prints unbounded argument text.const { readFileSync } = fs, default-valued destructuring, and.call/.applyare missed (ungrounded).Method
Static read of the rule, its test file and the resolver. Grep over non-test
actions/setup/jsfiles for the patterns above. I did not run the rule or the tests.Next actions
allowInlineRequire, which is a one-line change.All reactions