Skip to content

simplification: reduce function complexity in .agents/scripts/tech-stack-helper.sh (5 functions >100 lines) #5648

@marcusquinn

Description

@marcusquinn

Complexity scan finding (automated, GH#5628)

File: .agents/scripts/tech-stack-helper.sh
Violations: 5 functions exceed 100 lines

Functions exceeding threshold

bq_reverse_lookup() 131 lines
merge_results() 113 lines
cmd_lookup() 138 lines
cmd_reverse() 238 lines
main() 149 lines

Proposed action

Break down the listed functions into smaller, focused helper functions. Each function should ideally be under 100 lines.

Verification

  • bash -n <file> (syntax check)
  • shellcheck <file> (lint)
  • Run existing tests if present
  • Confirm no functionality is lost

Confidence: medium

This is an automated scan. The function lengths are factual, but the best decomposition strategy requires human judgment.


To approve or decline, comment on this issue:

  • approved — removes the review gate and queues for automated dispatch
  • declined: <reason> — closes this issue (include your reason after the colon)

Metadata

Metadata

Assignees

Labels

simplification-debtTarget file needs simplification before implementation work can proceedstatus:doneTask is complete

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions