Ruby: Update diagnostic source names for consistency

This commit is contained in:
Henry Mercer
2023-03-15 12:05:09 +00:00
parent a90f4915a7
commit 5de0eae992
4 changed files with 6 additions and 6 deletions

View File

@@ -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 {} {}.",

View File

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

View File

@@ -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

View File

@@ -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