mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Ruby: reduce number of diagnostic messages with the status_page flag
For now we only report real parse errors and character encoding errors. Warnings about unexpected or missing nodes in the AST are not reported. These are typically side effects of earlier parse errors.
This commit is contained in:
@@ -75,7 +75,6 @@ fn main() -> std::io::Result<()> {
|
||||
main_thread_logger
|
||||
.message("configuration-error", "Configuration error")
|
||||
.text(&format!("{}; defaulting to 1 thread.", e))
|
||||
.status_page()
|
||||
.severity(diagnostics::Severity::Warning),
|
||||
);
|
||||
1
|
||||
@@ -97,7 +96,6 @@ fn main() -> std::io::Result<()> {
|
||||
main_thread_logger
|
||||
.message("configuration-error", "Configuration error")
|
||||
.text(&format!("{}; using gzip.", e))
|
||||
.status_page()
|
||||
.severity(diagnostics::Severity::Warning),
|
||||
);
|
||||
trap::Compression::Gzip
|
||||
|
||||
Reference in New Issue
Block a user