Skip to content

Align CLAUDE.md with the scan-pipeline seam; remove orphaned format_annotations#200

Merged
jakebromberg merged 1 commit into
mainfrom
117g-scan-pipeline
Jun 22, 2026
Merged

Align CLAUDE.md with the scan-pipeline seam; remove orphaned format_annotations#200
jakebromberg merged 1 commit into
mainfrom
117g-scan-pipeline

Conversation

@jakebromberg

Copy link
Copy Markdown
Owner

Final PR of the scan-pipeline unification (umbrella #117). Docs-only, plus one dead-code deletion. No behavior change.

CLAUDE.md

  • Document the two-layer scan seam in git-tidy-core/src/scan.rs: Layer 1 parallel_classify (used directly by repo-, lfs-, and config-tidy) and Layer 2 run_pipeline (the five uniform tools), with generic RepoGroup<T> / ScanResult<T>, the Classified trait, and ScanOptions.
  • Document the generic Counts newtype (counts.rs) that replaced the per-tool *Counts structs and the define_counts! macro.
  • Extend the shared-output-helpers bullet with write_json_flat / FlatJsonItems / IntoJsonItem and format_summary_buckets; drop format_annotations (deleted below).
  • Reword the parallel-fetch bullet: fetch now runs inside run_pipeline when ScanOptions.fetch is set.
  • Alphabetize the core src/ module list and add the six modules it was missing (caching, counts, date, filter, gix_ops, progress, scan); also fixes the fetch.rs alignment glitch.
  • Fix the corrupted Project Layout where a spurious second git-lfs-tidy/ heading owned the repo-tidy subtree — repo-tidy now heads its own subtree, lfs-tidy appears once.
  • Drop the deleted *RepoGroup / RepoCounts names from the per-tool types.rs comments; the live LfsRepoGroup / ConfigRepoGroup are left intact.

Code

  • Delete format_annotations from git-tidy-core/src/output.rs — the last pub helper the refactor orphaned (zero production callers; format_table now inlines the comma-join) — along with its two unit tests.

Verification

  • cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D clippy::all, cargo test --workspace, and cargo +1.93.0 check --workspace (MSRV) all pass. Core lib test count drops by 2 (the two deleted tests).

Closes #117

…nnotations

Close out the scan-pipeline unification (issue #117) with the docs-and-dead-glue cleanup that PRs A–F deferred. No behavior change.

CLAUDE.md: document the two-layer scan seam in `git-tidy-core/src/scan.rs` (`parallel_classify` / `run_pipeline`, `RepoGroup<T>` / `ScanResult<T>`, `Classified`, `ScanOptions`) and the generic `Counts` newtype in `counts.rs`; extend the shared-output-helpers bullet with `write_json_flat` / `FlatJsonItems` / `IntoJsonItem` and `format_summary_buckets`; reword the parallel-fetch bullet now that fetch runs inside `run_pipeline`; alphabetize the core `src/` module list and add the six modules it was missing (caching, counts, date, filter, gix_ops, progress, scan); fix the corrupted Project Layout where a spurious second `git-lfs-tidy/` heading owned the repo-tidy subtree; and drop the deleted `*RepoGroup` / `RepoCounts` names from the per-tool `types.rs` comments.

output.rs: delete `format_annotations`, the last `pub` helper the refactor orphaned (zero production callers; `format_table` now inlines the comma-join), along with its two unit tests.
@jakebromberg jakebromberg merged commit 0209ce6 into main Jun 22, 2026
3 checks passed
@jakebromberg jakebromberg deleted the 117g-scan-pipeline branch June 22, 2026 02:22
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.

Unify the scan pipeline behind one interface in git-tidy-core

1 participant