Skip to content

Commit

Permalink
refactor(summary-reporter): order reported paths (#3757)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conaclos committed Sep 2, 2024
1 parent 163b1e2 commit 61728c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/biome_cli/src/reporter/summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use biome_console::fmt::{Display, Formatter};
use biome_console::{markup, Console, ConsoleExt, HorizontalLine, Padding, SOFT_LINE};
use biome_diagnostics::{Resource, Severity};
use std::cmp::Ordering;
use std::collections::BTreeMap;
use std::collections::{BTreeMap, BTreeSet};
use std::fmt::Debug;
use std::io;

Expand Down Expand Up @@ -120,8 +120,8 @@ impl<'a> ReporterVisitor for SummaryReporterVisitor<'a> {

#[derive(Debug, Default)]
struct FileToDiagnostics {
formats: Vec<String>,
organize_imports: Vec<String>,
formats: BTreeSet<String>,
organize_imports: BTreeSet<String>,
lints: LintsByCategory,
}

Expand All @@ -132,11 +132,11 @@ impl FileToDiagnostics {
}

fn insert_format(&mut self, location: &str) {
self.formats.push(location.into())
self.formats.insert(location.into());
}

fn insert_organize_imports(&mut self, location: &str) {
self.organize_imports.push(location.into())
self.organize_imports.insert(location.into());
}
}

Expand Down

0 comments on commit 61728c9

Please sign in to comment.