chore(cli): change "Found X errors" to "Found X warnings"

Things linters report are warnings not errors.
This commit is contained in:
Boshen 2023-06-27 23:03:21 +08:00
parent cddf6469d5
commit b8526e7363
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1

View file

@ -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);
}