mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Ruby: Update diagnostic source names for consistency
This commit is contained in:
@@ -223,7 +223,7 @@ fn main() -> std::io::Result<()> {
|
||||
} else {
|
||||
diagnostics_writer.write(
|
||||
diagnostics_writer
|
||||
.new_entry("unknown-character-encoding", "Unknown character encoding")
|
||||
.new_entry("unknown-character-encoding", "Could not process some files due to an unknown character encoding")
|
||||
.file(&file_paths::normalize_path(&path))
|
||||
.message(
|
||||
"Unknown character encoding {} in {} {}.",
|
||||
|
||||
@@ -255,7 +255,7 @@ impl<'a> Visitor<'a> {
|
||||
);
|
||||
let mut mesg = self
|
||||
.diagnostics_writer
|
||||
.new_entry("parse-error", "Parse error");
|
||||
.new_entry("parse-error", "Could not process some files due to syntax errors");
|
||||
&mesg
|
||||
.severity(diagnostics::Severity::Warning)
|
||||
.location(self.path, start_line, start_column, end_line, end_column)
|
||||
@@ -367,7 +367,7 @@ impl<'a> Visitor<'a> {
|
||||
self.record_parse_error(
|
||||
loc,
|
||||
self.diagnostics_writer
|
||||
.new_entry("parse-error", "Parse error")
|
||||
.new_entry("parse-error", "Could not process some files due to syntax errors")
|
||||
.severity(diagnostics::Severity::Warning)
|
||||
.location(self.path, start_line, start_column, end_line, end_column)
|
||||
.message(
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
"source": {
|
||||
"extractorName": "ruby",
|
||||
"id": "ruby/parse-error",
|
||||
"name": "Parse error"
|
||||
"name": "Could not process some files due to syntax errors"
|
||||
},
|
||||
"visibility": {
|
||||
"statusPage": true
|
||||
@@ -38,7 +38,7 @@
|
||||
"source": {
|
||||
"extractorName": "ruby",
|
||||
"id": "ruby/parse-error",
|
||||
"name": "Parse error"
|
||||
"name": "Could not process some files due to syntax errors"
|
||||
},
|
||||
"visibility": {
|
||||
"statusPage": true
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"source": {
|
||||
"extractorName": "ruby",
|
||||
"id": "ruby/unknown-character-encoding",
|
||||
"name": "Unknown character encoding"
|
||||
"name": "Could not process some files due to an unknown character encoding"
|
||||
},
|
||||
"visibility": {
|
||||
"statusPage": true
|
||||
|
||||
Reference in New Issue
Block a user