Skip to content

shellcheck is pinned and never runs #387

Description

@blooop

shellcheck is pinned in pyproject.toml and wired into no pixi task and no CI job, so it has never run against any script in this repo.

Found during the third wf-review pass on #385, which turned up a latent glob bug in scripts/review_verdict.sh: for login in $REFUSING_LOGINS word-splits and then globs, and every login it holds ends in [bot], a bracket expression matching one of b, o or t. A zero-byte file named sourcery-aib in the working directory flipped a quota refusal into "reviewed by 1 review(s)".

shellcheck would not have caught that specific one, since it accepts word-splitting in a for. That is not the point. A linter that is installed and never executed is the same shape as a reviewer that answers without reviewing, which is what #378 and #385 were both about.

Scripts it would cover today:

  • scripts/review_verdict.sh
  • scripts/public-api-snapshots.sh
  • scripts/bench_cold_reset.sh
  • the run: blocks in .github/workflows/, via shellcheck -x or a dedicated action

Worth checking whether the existing scripts are already clean before wiring it into gate; if they are not, fix them in the same change rather than landing a job that starts red.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions