Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev: simplify sort results processors #5150

Merged
merged 4 commits into from
Nov 23, 2024
Merged

Conversation

ldez
Copy link
Member

@ldez ldez commented Nov 23, 2024

The package cmp has been added in go1.21 + the usage of standard comparison values -> it allows the SortResults processor to be simplified.

259 LOC to 148 LOC 🎉
And a way less complex than before.

@ldez ldez added topic: cleanup Related to code, process, or doc cleanup area: processors labels Nov 23, 2024
@ldez ldez added this to the next milestone Nov 23, 2024
@ldez ldez requested a review from bombsimon November 23, 2024 00:10
@ldez ldez force-pushed the feat/sort-results branch from d133836 to dcc0ff2 Compare November 23, 2024 00:35
@ldez ldez force-pushed the feat/sort-results branch 2 times, most recently from ede25e5 to 18da1e1 Compare November 23, 2024 01:00
@ldez ldez force-pushed the feat/sort-results branch from 18da1e1 to ceb50e3 Compare November 23, 2024 01:02
Copy link
Member

@bombsimon bombsimon left a comment

Choose a reason for hiding this comment

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

Nice! LGTM! 🎉

pkg/result/processors/sort_results.go Outdated Show resolved Hide resolved
@ldez ldez merged commit af9b92a into golangci:master Nov 23, 2024
15 checks passed
@ldez ldez deleted the feat/sort-results branch November 23, 2024 17:32
@ldez ldez modified the milestones: next, v1.62 Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: processors topic: cleanup Related to code, process, or doc cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants