Skip to content

chore: make just check green — lint fixes + format sweep#130

Merged
akesling merged 3 commits into
mainfrom
alex/just-check-green
Jul 10, 2026
Merged

chore: make just check green — lint fixes + format sweep#130
akesling merged 3 commits into
mainfrom
alex/just-check-green

Conversation

@akesling

@akesling akesling commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Running just check on main failed 2 of 7 gates. This makes it fully green and adds CI enforcement so it stays that way.

Fixes

  • clippy (-D warnings): redundant closure in cmd_export.rs — pass stable_workspace_id_for directly to ensure_workspace_storage_entry.
  • shellcheck (scripts/verify-copilot-live.sh): SC2088 — spell the missing-config path with ${HOME} instead of an unexpandable quoted ~; SC2012 — derive the projected session id with find instead of parsing ls.

Format sweep (the other 30 files)

GitHub Actions CI only ran cargo test + cargo clippy — not the quality_gates.sh format/shellcheck gates — so rustfmt/prettier cleanliness drifted across merged PRs. Verified against a pristine checkout of origin/main: plain cargo fmt --all --check under the pinned 1.94.0 toolchain reports 153 diffs in the same files (no rustfmt.toml involved; an alternate rustfmt 1.8.0 install reports the identical set, so it's not version skew — the code was committed without a fmt pass). Those hunks are formatting-only.

CI enforcement (new)

  • Adds a lint job to the workflow running scripts/quality_gates.sh format shellcheck on every PR and push to main — same single source of truth as just ci.
  • Pins prettier to 3.9.5 in site/package.json (previously npx --yes prettier floated to latest), so the gate can't flap when a new prettier release changes formatting rules.

Verification

just check on this branch: 7/7 gates pass (format, shellcheck, clippy, test, doc, examples, site); workflow YAML parses; quality_gates.sh format shellcheck passes with the pinned prettier.

- clippy: replace a redundant closure in cmd_export.rs with the function itself
- shellcheck: use ${HOME} in verify-copilot-live.sh's error message (SC2088)
  and find instead of ls for the projected session id (SC2012)
- rustfmt + prettier sweep: GitHub CI only runs test+clippy, so formatting
  drifted across merged PRs; this restores 'cargo fmt --check' cleanliness
@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown

🔍 Preview deployed: https://f8b120fe.toolpath.pages.dev

akesling added 2 commits July 10, 2026 12:49
GitHub CI previously ran only cargo test + clippy, so rustfmt/prettier/
shellcheck drift merged unchecked (this branch's sweep is the cleanup).
Adds a lint job running scripts/quality_gates.sh format shellcheck, and
pins prettier (3.9.5) in site/package.json so the gate can't flap when
a new prettier version changes formatting rules.
Replaces the bespoke test+clippy steps (and the interim lint job) with
one job running scripts/quality_gates.sh --verbose — the same seven
gates as 'just ci' — so the workflow can't drift from the justfile.
Also disables SC2317 file-wide in quality_gates.sh: the gate_* functions
are dispatched indirectly, which older shellcheck (ubuntu-latest) flags
as SC2317 where newer flags SC2329; only the latter was suppressed,
which is why the first CI run of the shellcheck gate failed.
@akesling akesling marked this pull request as ready for review July 10, 2026 19:42
@akesling akesling merged commit 5ed97bf into main Jul 10, 2026
2 checks passed
@akesling akesling deleted the alex/just-check-green branch July 10, 2026 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant