mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 12:36:54 +00:00
Sort reports by line and column
Originally the reports have been sorted by column and message (without the error code), so it didn't order after the line number. Closes #196
This commit is contained in:
parent
53455fdff7
commit
ad3b486909
2 changed files with 69 additions and 1 deletions
|
|
@ -306,7 +306,7 @@ class Manager(object):
|
|||
"""
|
||||
results_reported = results_found = 0
|
||||
for checker in self.checkers:
|
||||
results = sorted(checker.results, key=lambda tup: (tup[2], tup[3]))
|
||||
results = sorted(checker.results, key=lambda tup: (tup[1], tup[2]))
|
||||
results_reported += self._handle_results(checker.display_name,
|
||||
results)
|
||||
results_found += len(results)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue