Skip to content

[Code Quality] Remove dead code withinDeferredBoundary in require-execsync-try-catch rule (lines 148-160) #47227

Description

@github-actions

Description

The require-execsync-try-catch ESLint rule in pkg/workflow/js/ contains dead code: the withinDeferredBoundary helper (lines 148-160) is computed but never used — the value is immediately void-ed. This dead code adds noise, makes the rule harder to maintain, and could confuse contributors.

Source

Extracted from ESLint Refiner Daily Report 2026-07-22 — "Backlog observations" section.

Suggested Changes

  • Remove the withinDeferredBoundary computation at lines 148-160 of the require-execsync-try-catch rule file
  • If the logic may be needed in future, extract it to a comment documenting the intended semantics
  • Ensure all existing rule tests still pass after the removal

Files Affected

  • pkg/workflow/js/ — the require-execsync-try-catch rule implementation (exact file TBD, locate via grep -r withinDeferredBoundary)

Success Criteria

  • withinDeferredBoundary dead code removed
  • All ESLint rule tests pass
  • No false-positive/false-negative behavior changes

Priority

Low — pure code cleanliness, no runtime impact; but good practice before the rule gains wider usage.

🔍 Task mining by Discussion Task Miner - Code Quality Improvement Agent · sonnet46 91.8 AIC · ⌖ 8.11 AIC · ⊞ 7.1K ·

  • expires on Jul 22, 2026, 11:43 PM UTC-08:00

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions