Skip to content

Commit

Permalink
refactor(linter): move DiagnosticsReporters to oxlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Jan 12, 2025
1 parent 5be6cb4 commit 0e979d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/oxc_diagnostics/src/reporter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,11 @@ pub trait DiagnosticReporter {
/// Lifecycle hook that gets called when no more diagnostics will be reported.
///
/// Used primarily for flushing output stream buffers, but you don't just have to use it for
/// that. Some reporters (e.g. [`JSONReporter`]) store all diagnostics in memory, then write them
/// that. Some reporters (e.g. `JSONReporter`) store all diagnostics in memory, then write them
/// all at once.
///
/// While this method _should_ only ever be called a single time, this is not a guarantee
/// upheld in Oxc's API. Do not rely on this behavior.
///
/// [`JSONReporter`]: crate::reporter::JsonReporter
fn finish(&mut self, writer: &mut dyn Write);

/// Write a rendered collection of diagnostics to this reporter's output stream.
Expand Down

0 comments on commit 0e979d7

Please sign in to comment.