Repository navigation
Commit cb2b232
Sweep scan/discovery.rs (#1884)
* Start sweep of scan/discovery.rs
Assisted-by: Claude Code:claude-opus-5-5
* Test shell_word, supersedes and layout in place
Move the tests for ui::shell_word, ranking::batch_supersedes and
lock_inventory::unsupported_layout_warnings next to the code they
check. scan/discovery.rs tested them through wrappers and re-exports
that the next commit deletes. The shell_word test now covers the
Windows quoting and `%`.
Assisted-by: Claude Code:claude-opus-5-5
* Sweep scan/discovery.rs
Drop the re-exports of unsupported_layout_warnings and
merge_ledger_records_for_updates; scan and get import them from core.
Inline candidate_supersedes and the severity_order wrapper into their
callers, and delete the 5 severity_order tests core's ranking tests
already cover.
The nested-project remedy now quotes its PATH with ui::shell_word, so
on Windows it is double-quoted and a `%` is quoted everywhere (#1859).
Trim restating doc comments and test banners, and fold the trailing
collect_vuln_ids dedup test into its siblings.
Assisted-by: Claude Code:claude-opus-5-5
* Address review of the discovery sweep
Fold the last info_with_advisories caller onto patch_with, and make
the comment over scan's discovery re-exports name what they export.
Assisted-by: Claude Code:claude-opus-5-5
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 90a76c1 commit cb2b232
7 files changed
Lines changed: 127 additions & 283 deletions
File tree
- crates
- socket-patch-cli/src
- commands
- scan
- ui
- socket-patch-core/src
- api
- vendor/lock_inventory
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
911 | | - | |
| 911 | + | |
| 912 | + | |
912 | 913 | | |
913 | 914 | | |
914 | 915 | | |
| |||
0 commit comments