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 Jan 27, 2025
1 parent c2588a8 commit 2993bff
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ phf = "0.11.2"
pico-args = "0.5.0"
prettyplease = "0.2.25"
project-root = "0.2.2"
quick-junit = "0.5.1"
rayon = "1.10.0"
regex = "1.11.1"
ropey = "1.6.1"
Expand All @@ -202,7 +203,6 @@ ureq = { version = "2.12.1", default-features = false }
url = "2.5.4"
walkdir = "2.5.0"
wasm-bindgen = "0.2.99"
quick-junit = "0.5.1"

[workspace.metadata.cargo-shear]
ignored = ["napi", "oxc_transform_napi", "oxc_parser_napi", "prettyplease"]
Expand Down
4 changes: 2 additions & 2 deletions apps/oxlint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ oxc_span = { workspace = true }
bpaf = { workspace = true, features = ["autocomplete", "bright-color", "derive"] }
ignore = { workspace = true, features = ["simd-accel"] }
miette = { workspace = true }
quick-junit = { workspace = true }
rayon = { workspace = true }
rustc-hash = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tempfile = { workspace = true }
tracing-subscriber = { workspace = true, features = [] } # Omit the `regex` feature
quick-junit = { workspace = true }
tracing-subscriber = { workspace = true, features = [] } # Omit the `regex` feature

[dev-dependencies]
insta = { workspace = true }
Expand Down
10 changes: 6 additions & 4 deletions apps/oxlint/src/output_formatter/junit.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

use oxc_diagnostics::{reporter::{DiagnosticReporter, DiagnosticResult, Info}, Error};
use oxc_diagnostics::{
reporter::{DiagnosticReporter, DiagnosticResult, Info},
Error,
};

use super::InternalFormatter;
use quick_junit::{NonSuccessKind, Report, TestCase, TestCaseStatus, TestSuite};
Expand Down Expand Up @@ -37,10 +39,10 @@ fn format_junit(diagnostics: &[Error]) -> String {
let mut status = TestCaseStatus::non_success(NonSuccessKind::Failure);
status.set_message(info.message);
let rule = diagnostic.code().map_or_else(String::new, |code| code.to_string());
let test_case = TestCase::new(rule, status);
let test_case = TestCase::new(rule, status);
test_suite.add_test_case(test_case);

report.add_test_suite(test_suite);
}
report.to_string().unwrap()
}
}
4 changes: 2 additions & 2 deletions apps/oxlint/src/output_formatter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ mod checkstyle;
mod default;
mod github;
mod json;
mod junit;
mod stylish;
mod unix;
mod junit;

use std::str::FromStr;
use std::time::Duration;

use checkstyle::CheckStyleOutputFormatter;
use github::GithubOutputFormatter;
use junit::JUnitOutputFormatter;
use stylish::StylishOutputFormatter;
use unix::UnixOutputFormatter;
use junit::JUnitOutputFormatter;

use oxc_diagnostics::reporter::DiagnosticReporter;

Expand Down

0 comments on commit 2993bff

Please sign in to comment.