Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions apps/oxlint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ mod walk;
#[cfg(test)]
mod tester;

use lint::LintRunner;
use result::CliRunResult;

/// Re-exported CLI-related items for use in `tasks/website`.
pub mod cli {
pub use crate::{command::*, lint::LintRunner, result::CliRunResult};
pub use super::{command::*, lint::LintRunner, result::CliRunResult};
}

use cli::{CliRunResult, LintRunner};

#[cfg(all(feature = "allocator", not(miri), not(target_family = "wasm")))]
#[global_allocator]
static GLOBAL: mimalloc_safe::MiMalloc = mimalloc_safe::MiMalloc;
Expand Down Expand Up @@ -80,7 +82,7 @@ pub fn lint(mut external_linter: Option<ExternalLinter>) -> CliRunResult {
LintRunner::new(command, external_linter).run(&mut stdout)
}

// Initialize the data which relies on `is_atty` system calls so they don't block subsequent threads.
/// Initialize the data which relies on `is_atty` system calls so they don't block subsequent threads.
fn init_miette() {
miette::set_hook(Box::new(|_| Box::new(miette::MietteHandlerOpts::new().build()))).unwrap();
}
Expand Down
Loading