mirror of
				https://github.com/astral-sh/ruff.git
				synced 2025-11-03 21:23:45 +00:00 
			
		
		
		
	Sort statistics by count (#3748)
This commit is contained in:
		
							parent
							
								
									e603382cf0
								
							
						
					
					
						commit
						cd75b57036
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue