mirror of https://github.com/astral-sh/ruff
Sort statistics by count (#3748)
This commit is contained in:
parent
e603382cf0
commit
cd75b57036
|
|
@ -504,6 +504,7 @@ impl Printer {
|
||||||
.iter()
|
.iter()
|
||||||
.any(|message| message.kind.fixable),
|
.any(|message| message.kind.fixable),
|
||||||
})
|
})
|
||||||
|
.sorted_by_key(|statistic| Reverse(statistic.count))
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
let mut stdout = BufWriter::new(io::stdout().lock());
|
let mut stdout = BufWriter::new(io::stdout().lock());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue