From e3f8ce8d8d9e4887baf2c2ff23d9e265dd681fae Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sat, 23 Nov 2024 18:03:35 +0100 Subject: [PATCH] review: move issueComparator --- pkg/result/processors/sort_results.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/result/processors/sort_results.go b/pkg/result/processors/sort_results.go index 0892d5675c3c..7eebea6315ef 100644 --- a/pkg/result/processors/sort_results.go +++ b/pkg/result/processors/sort_results.go @@ -29,6 +29,8 @@ const ( var _ Processor = (*SortResults)(nil) +type issueComparator func(a, b *result.Issue) int + type SortResults struct { cmps map[string][]issueComparator @@ -84,8 +86,6 @@ func (p SortResults) Process(issues []result.Issue) ([]result.Issue, error) { func (SortResults) Finish() {} -type issueComparator func(a, b *result.Issue) int - func byFileName(a, b *result.Issue) int { return strings.Compare(a.FilePath(), b.FilePath()) }