mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Fix: return 0 exit code when warnings<max_warnings (#933)
`oxlint --max-warnings 99999` should exit with success status code when there are warnings but no errors found. Currently any warning or error results in an exit status of 1.
This commit is contained in:
parent
d700cf899c
commit
a4c064795c
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ impl Termination for CliRunResult {
|
|||
if number_of_errors == 1 { "" } else { "s" }
|
||||
);
|
||||
|
||||
let exit_code = u8::from(number_of_diagnostics > 0);
|
||||
let exit_code = u8::from(number_of_errors > 0);
|
||||
ExitCode::from(exit_code)
|
||||
}
|
||||
Self::TypeCheckResult { duration, number_of_diagnostics } => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue