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:
Boshen 2024-01-11 20:41:06 +08:00 committed by GitHub
parent ef67e08c6a
commit ea22d3ceb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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