mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(diagnostics): always print without considering the --max-warnings option (#1996)
closes #1958 `--max-warnings` is only used to control the exit code, it does not affect diagnostic printing.
This commit is contained in:
parent
ef67e08c6a
commit
ea22d3ceb8
1 changed files with 0 additions and 6 deletions
|
|
@ -113,12 +113,6 @@ impl DiagnosticService {
|
|||
else if self.quiet {
|
||||
continue;
|
||||
}
|
||||
|
||||
if let Some(max_warnings) = self.max_warnings {
|
||||
if self.warnings_count() > max_warnings {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let mut err = String::new();
|
||||
|
|
|
|||
Loading…
Reference in a new issue