Skip to content

test: CLI integration tests + clippy pedantic#8

Merged
rahulrajaram merged 4 commits into
masterfrom
feat/cli-integration-tests-and-clippy-pedantic
Mar 26, 2026
Merged

test: CLI integration tests + clippy pedantic#8
rahulrajaram merged 4 commits into
masterfrom
feat/cli-integration-tests-and-clippy-pedantic

Conversation

@rahulrajaram
Copy link
Copy Markdown
Owner

Summary

  • Add 23 integration tests in tests/cli_integration.rs covering 18
    previously untested CLI commands (stats, check-links, backlinks,
    orphans, canonicality, canonical-orphans, similar, dupes,
    dupes-sections, diff, export-graph, assemble, check,
    suggest-consolidation, eval, build JSON, policy, stale)
  • Enable #![warn(clippy::pedantic)] at crate level with targeted
    allows for intentional patterns (casts, too_many_lines, etc.)
  • Fix case-sensitive extension comparisons, let-else patterns, clone
    efficiency, format push strings, and inline format args

Test plan

  • 125 tests pass (74 unit + 51 integration), 0 failures
  • cargo clippy -- -D warnings clean
  • cargo fmt --check clean

Add comprehensive integration tests for 18 previously uncovered
commands: stats, check-links, backlinks, orphans, canonicality,
canonical-orphans, similar, dupes, dupes-sections, diff,
export-graph, assemble, check, suggest-consolidation, eval,
build (JSON), policy, and stale.

Enable #![warn(clippy::pedantic)] at crate level with targeted
allows for intentional patterns. Fix case-sensitive extension
comparisons, let-else patterns, clone efficiency, format push
strings, and inline format args across all source and test files.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 26, 2026

Commit squash-scope review

Range: origin/master..0f5d6c3453fb4c8ad475287ab140c0fb35764fb0
Commits reviewed: 5

Heuristic candidates

  • 4936f42 2c83725: shared file overlap (100% file-overlap, 1 shared files)
    • 4936f42: test: add 23 CLI integration tests and enable clippy pedantic
    • 2c83725: fix(clippy): handle lint version differences between local and CI
  • 2c83725 171801e: shared file overlap (100% file-overlap, 1 shared files)
    • 2c83725: fix(clippy): handle lint version differences between local and CI
    • 171801e: fix(clippy): move renamed_and_removed_lints allow before pedantic block

Suggested next action

I found 2 candidate adjacent commit pairs to review for squashing.
Run the following and mark the listed pairs as squash or fixup where appropriate:

  • git rebase -i origin/master

These are heuristics only. Use your judgment before collapsing history.

SQUASH_SCOPE_NEEDS_REWRITE=1

Add `renamed_and_removed_lints` allow to suppress errors when
`match_on_vec_items` is renamed in CI's newer clippy (Rust 1.94+).
Also allow `implicit_clone` which is newly enforced in that version.
The allow must precede the block containing match_on_vec_items so it
takes effect before CI's `-D warnings` can reject the removed lint.
Lower similarity threshold to 0.1 and keep fixture documents nearly
identical so MinHash similarity stays high regardless of platform
hash seeds.
@rahulrajaram rahulrajaram merged commit 372c7e7 into master Mar 26, 2026
6 checks passed
@rahulrajaram rahulrajaram deleted the feat/cli-integration-tests-and-clippy-pedantic branch March 26, 2026 06:20
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