From b8526e736396a53d866151d987bb3fa27f3ce869 Mon Sep 17 00:00:00 2001 From: Boshen Date: Tue, 27 Jun 2023 23:03:21 +0800 Subject: [PATCH] chore(cli): change "Found X errors" to "Found X warnings" Things linters report are warnings not errors. --- crates/oxc_cli/src/result.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/oxc_cli/src/result.rs b/crates/oxc_cli/src/result.rs index c9bbd9a4d..1415db779 100644 --- a/crates/oxc_cli/src/result.rs +++ b/crates/oxc_cli/src/result.rs @@ -46,6 +46,11 @@ impl Termination for CliRunResult { } => { let ms = duration.as_millis(); let threads = rayon::current_num_threads(); + + if number_of_diagnostics > 0 { + println!(); + } + println!( "Finished in {ms}ms on {number_of_files} files with {number_of_rules} rules using {threads} threads." ); @@ -68,7 +73,7 @@ impl Termination for CliRunResult { println!("Finished in {ms}ms."); if number_of_diagnostics > 0 { - println!("Found {number_of_diagnostics} errors."); + println!("Found {number_of_diagnostics} warnings."); return ExitCode::from(1); }