Skip to content

fix(scripts): read emit call sites with shfmt --to-json (#4222) - #5065

Merged
cursor[bot] merged 4 commits into
mainfrom
cursor/4222-eval-coverage-shfmt-37e9
Sep 28, 2026
Merged

cursor[bot] merged 4 commits into
mainfrom
cursor/4222-eval-coverage-shfmt-37e9

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #4222.

Summary

Replaces the hand-rolled awk emit scanner with shfmt --to-json. The line walk lost calls a shell parser sees (including command substitution inside double quotes). CI / cloud-bootstrap pin mvdan/sh v3.14.1; missing binary or older than v3.13.0 exits 2.

Test plan

  • scripts/check-detector-eval-coverage.test.sh on the branch
  • Workflow / bootstrap pin present
Open in Web Open in Cursor 

The line walk lost calls a shell parser sees, including a command
substitution inside double quotes. lint-2 and cloud-bootstrap pin
mvdan/sh v3.14.1; a missing binary or anything older than v3.13.0 is
exit 2, because v3.12.0 drops a call after # following $(...).

Closes #4222

Co-authored-by: Kyle Sexton <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

PR body contract — issue linkage

This PR body does not yet satisfy the issue-linkage contract:

  • Missing a "## Fix" section. State the concrete change and how it addresses the problem.
  • Missing a "## Verification" section. Record concrete evidence the change works (commands, gates, output).
  • Missing a "## Related" section. List related PRs, ADRs, or decision-log entries this PR does not close.

Edit the body and this comment updates itself on the next run.

@cursor
cursor Bot marked this pull request as ready for review September 28, 2026 06:57
cursoragent and others added 2 commits September 28, 2026 07:06
The eval-coverage gate exits 2 when shfmt is missing. lint-2 already
installs v3.14.1; the test-linux job was still running that suite without it.

Co-authored-by: Kyle Sexton <[email protected]>
The all-heads gitleaks scan reaches two architecture test fixtures.
The ignore list is the mechanism named in .gitleaks.toml.

Co-authored-by: Kyle Sexton <[email protected]>
@cursor
cursor Bot merged commit 02c87fb into main Sep 28, 2026
3 checks passed
@cursor
cursor Bot deleted the cursor/4222-eval-coverage-shfmt-37e9 branch September 28, 2026 07:23
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.

Rebuild the eval-coverage emit scanner on a real shell parser instead of hand-rolled awk

2 participants