Skip to content

Remove duplicate CLI metric sort#159

Merged
fabian-barney merged 3 commits into
mainfrom
codex/126-remove-cli-sort
May 15, 2026
Merged

Remove duplicate CLI metric sort#159
fabian-barney merged 3 commits into
mainfrom
codex/126-remove-cli-sort

Conversation

@fabian-barney
Copy link
Copy Markdown
Owner

Summary

  • Remove the redundant CLI-level metric sort after module analysis.
  • Keep analyzer canonical ordering and report formatter output ordering unchanged.

Verification

  • mvn verify

Closes #126

Copilot AI review requested due to automatic review settings May 15, 2026 20:52
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes a redundant post-analysis sort in the CLI execution path to avoid unnecessary work, while preserving the analyzer’s behavior and keeping report output ordering unchanged (report formatting still applies its own ordering).

Changes:

  • Removed the CLI-level metrics.sort(...) after analyzeByModule(...).
  • Left CrapAnalyzer sorting and ReportFormatter sorting behavior intact.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@fabian-barney fabian-barney merged commit abe0e1a into main May 15, 2026
16 of 17 checks passed
@fabian-barney fabian-barney deleted the codex/126-remove-cli-sort branch May 15, 2026 22:14
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.

[Info] performance: metrics list sorted three times (CliApplication, CrapAnalyzer, ReportFormatter)

2 participants