Skip to content

chore: apply shfmt and fix shellcheck warnings in scripts/bash #4805

Description

@jlec

scripts/bash/*.sh currently passes CI only because lint.yml runs shellcheck at --severity=error. At default severity there are 8 findings, and shfmt -d reports differences in all 6 files.

  • SC2155 (declare and assign separately): common.sh:71, create-new-feature.sh:217, create-new-feature.sh:254
  • SC1091 (sourced file not followed): check-prerequisites.sh:97, create-new-feature.sh:194, resolve-template.sh:6, setup-plan.sh:28, setup-tasks.sh:23
  • shfmt: formatting differs under the repo's .editorconfig (4-space indent)

Proposed: a behavior-neutral PR limited to scripts/bash, with no CI changes. Tightening the CI severity or adding a shfmt check can be a follow-up, as the comment in lint.yml already suggests.

AI disclosure: drafted with Claude Code (Claude Sonnet 5.5), acting on behalf of @jlec. Findings come from running shellcheck and shfmt locally.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-assessRun the Spec Kit idea-assessment pipeline on this feature requesttriage-can-waitVerdict: valid and in-scope but deprioritized; held behind the evidence gate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions