Skip to content

quality-debt: .agents/scripts/linters-local.sh — PR #2923 review feedback (medium) #3178

@marcusquinn

Description

@marcusquinn

Unactioned Review Feedback

Source PR: #2923
File: .agents/scripts/linters-local.sh
Reviewers: gemini
Findings: 1
Max severity: medium


MEDIUM: gemini (gemini-code-assist[bot])

File: .agents/scripts/linters-local.sh:387
medium

While this change correctly attempts to kill the process group with a fallback, suppressing stderr for both kill commands with 2>/dev/null can hide important errors, such as "Operation not permitted". This goes against the project's general rules which advise against blanket error suppression. While removing the suppression may result in "No such process" messages in the log if the process has already completed, it ensures that actual failures in the timeout mechanism are visible for debugging.

(sleep "$sc_timeout" && kill -- -"$sc_bg_pid" || kill "$sc_bg_pid") &
References
  1. Avoid using '2>/dev/null' for blanket suppression of command errors in shell scripts to ensure that authentication, syntax, or system issues remain visible for debugging.

View comment


Auto-generated by quality-feedback-helper.sh scan-merged. Review each finding and either fix the code or dismiss with a reason.

Metadata

Metadata

Assignees

Labels

priority:mediumMedium severity — moderate quality issuequality-debtUnactioned review feedback from merged PRsstatus:doneTask is complete

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions