Skip to content

Commit

Permalink
Merge pull request #576 from crystal-ameba/fix-issue-sorting
Browse files Browse the repository at this point in the history
Fix issue sorting
  • Loading branch information
Sija authored Feb 18, 2025
2 parents 18b0780 + 452fca9 commit 067b90c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ameba/runner.cr
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,12 @@ module Ameba
ensure
missing_location = Crystal::Location.new(nil, 0, 0)
source.issues.sort_by! do |issue|
issue.location || missing_location
location = issue.location || missing_location
{
location.filename.to_s,
location.line_number,
location.column_number,
}
end
@formatter.source_finished source
end
Expand Down

0 comments on commit 067b90c

Please sign in to comment.