Skip to content

feat: -sort orders diff findings by bytes saved#36

Merged
peczenyj merged 2 commits into
develfrom
feature/sort-diff
May 26, 2026
Merged

feat: -sort orders diff findings by bytes saved#36
peczenyj merged 2 commits into
develfrom
feature/sort-diff

Conversation

@peczenyj
Copy link
Copy Markdown
Owner

Adds -sort (bool, default off). In diff mode, all findings across all scanned packages are collected and presented largest-first by absolute bytes saved (OldSize - NewSize).

Inspect-mode sorting is a no-op here and lands in the next PR (which Closes #30).

Tests: with two structs saving 8 and 16 bytes, -sort renders the bigger first; default keeps source order. task ci green (89 tests).

Part of #30

🤖 Generated with Claude Code

-sort (default off) collects findings across all scanned packages and
presents them largest-first by absolute bytes saved (OldSize-NewSize),
using a stable sort so equal-savings structs keep source order and
unknown-size findings sink to the bottom. Diff mode only for now; inspect
support follows.

Part of #30

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.45%. Comparing base (d9a7553) to head (95c4eb8).
⚠️ Report is 7 commits behind head on devel.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel      #36      +/-   ##
==========================================
+ Coverage   84.80%   85.45%   +0.64%     
==========================================
  Files          10       10              
  Lines         678      708      +30     
==========================================
+ Hits          575      605      +30     
  Misses         65       65              
  Partials       38       38              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

chore: try to trigger ci again
@peczenyj peczenyj merged commit e6ee493 into devel May 26, 2026
6 checks passed
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.

2 participants