Compare commits

..
Author SHA1 Message Date
Dylan M. Taylor cb49ac055d Sonar: fix clippy lints that fail the gate; drop unread ScaledGroupSpec field
Collapse nested ifs into match guards, simplify negated boolean
expressions to their equivalent forms, and remove the ScaledGroupSpec
group field, which was written but never read.

Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-10-26 09:06:48 -04:00
Dylan M. Taylor f2c32842bc Sonar: reduce assert_scaled_group_reroute to 3 params
Wrap the 6 shape/geometry arguments (w, h, kind, rot, flip_h,
flip_v) of the reroute test helper into a ScaledGroupSpec config
struct so the function drops under Sonar's rust:S107 7-parameter
threshold (it was 8). The call site builds the spec inline.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-10-26 08:46:06 -04:00
Dylan M. Taylor 7b0e079705 Sonar: extract helpers from highlight check, revision span and outline remap
Behaviour-preserving extractions for S3776:
- engine cmd/format.rs target_has_highlight: span_matches checks a paragraph's mark and runs.
- engine cmd/review.rs resolve_sel: revision_span finds the tracked change at a caret.
- engine cmd/outline.rs after_command: remap_collapsed_headings keeps collapsed headings.
2026-10-26 08:46:03 -04:00
-3
View File
@@ -1,3 +0,0 @@
# Minimum cargo-nextest for this repository: GHSA-vc25-qg58-w57c is fixed in 0.9.150 and CI
# installs exactly that version, so an older nextest refuses to run (exit 92 REQUIRED_VERSION_NOT_MET).
nextest-version = "0.9.150"