Skip to content

ci: triage ShellCheck findings in upstream Speckit scaffold scripts #128

Closed

Description

@yvonnedevlinrh

Summary

MegaLinter's ShellCheck audit reports failures in vendored Speckit scaffold scripts under .specify/scripts/bash/. These findings block the Standardized CI / Run linters check and release preflight.

The scripts are upstream-managed scaffolding rather than project-owned runtime code, so changes need to preserve compatibility with the upstream template.

Goal

Classify the ShellCheck findings and choose the least invasive remediation: upstream fixes where practical, or a precise documented exclusion when the vendored scripts should not be modified locally.

Reported Findings

  • common.sh: SC2155, SC2221, SC2222
  • check-prerequisites.sh: SC1091
  • create-new-feature.sh: SC2155
  • setup-plan.sh: SC1091, SC2155
  • setup-tasks.sh: SC1091, SC2155
  • update-agent-context.sh: SC1091, SC2155

Acceptance Criteria

  • Each reported finding is classified as a defect, a false positive, or an accepted upstream limitation.
  • Project-owned scripts are fixed where appropriate.
  • Any exclusion applies only to the vendored Speckit path and does not suppress ShellCheck elsewhere.
  • Any exclusion documents why local changes are unsafe or unsuitable.
  • MegaLinter passes without weakening unrelated CI checks.
  • The release preflight can proceed with the linter check passing.

Split from #123

Activity

  1. added this to the release v0.19.0 milestone on Oct 7, 2026
  2. yvonnedevlinrh commented on Oct 7, 2026

    @yvonnedevlinrh
    ContributorAuthor

    The reported ShellCheck findings are a reproducible CI and release-preflight blocker, so this has been classified as a bug.

    The remediation should prefer behavior-preserving, upstream-compatible fixes in the vendored Speckit scripts. If a local change is unsafe, any exception must be limited to .specify/scripts/bash/, documented, and must not suppress ShellCheck checks elsewhere.

    This issue is appropriately scoped as the ShellCheck portion split from #123.

    This triage was performed by the Divisor review panel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions