Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored and Sysix committed Jan 28, 2025
1 parent cbe2439 commit e26e522
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 1 addition & 6 deletions apps/oxlint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,5 @@ mod walk;

pub mod cli {

pub use crate::{
command::*,
lint::LintRunner,
result::CliRunResult,
runner::Runner,
};
pub use crate::{command::*, lint::LintRunner, result::CliRunResult, runner::Runner};
}
12 changes: 9 additions & 3 deletions apps/oxlint/src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ use std::{
#[derive(Debug)]
pub enum CliRunResult {
None,
InvalidOptions { message: String },
PathNotFound { paths: Vec<PathBuf> },
InvalidOptions {
message: String,
},
PathNotFound {
paths: Vec<PathBuf>,
},
/// The exit unix code for, in general 0 or 1 (from `--deny-warnings` or `--max-warnings` for example)
LintResult(ExitCode),
PrintConfigResult,
ConfigFileInitResult { message: String },
ConfigFileInitResult {
message: String,
},
}

impl Termination for CliRunResult {
Expand Down

0 comments on commit e26e522

Please sign in to comment.