Skip to content

coderabbit: Consolidate duplicate utility functions #2411

@marcusquinn

Description

@marcusquinn

Finding #7: Duplication of common utilities (log_info/log_error/api_request/help)

Evidence:
Duplicate definitions across dozens of scripts (e.g., log_info() appears 28x; main() 249x).

Risk:
Maintenance burden; inconsistent behavior across scripts; harder to fix bugs globally.

Recommended Action:

  • Consolidate into templates/standard-functions.sh or .agents/scripts/shared-constants.sh and source them
  • Add a lightweight module policy: new helpers must go through the shared module; per-script copies deprecated

Source: #2386

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-dispatchAuto-created from TODO.md tagcoderabbit-pulseDaily CodeRabbit pulse review trackingstatus:doneTask is complete

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions