Skip to content

Commit 5de0eae

Browse files
committed
Ruby: Update diagnostic source names for consistency
1 parent a90f491 commit 5de0eae

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

ruby/extractor/src/bin/extractor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ fn main() -> std::io::Result<()> {
223223
} else {
224224
diagnostics_writer.write(
225225
diagnostics_writer
226-
.new_entry("unknown-character-encoding", "Unknown character encoding")
226+
.new_entry("unknown-character-encoding", "Could not process some files due to an unknown character encoding")
227227
.file(&file_paths::normalize_path(&path))
228228
.message(
229229
"Unknown character encoding {} in {} {}.",

ruby/extractor/src/extractor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ impl<'a> Visitor<'a> {
255255
);
256256
let mut mesg = self
257257
.diagnostics_writer
258-
.new_entry("parse-error", "Parse error");
258+
.new_entry("parse-error", "Could not process some files due to syntax errors");
259259
&mesg
260260
.severity(diagnostics::Severity::Warning)
261261
.location(self.path, start_line, start_column, end_line, end_column)
@@ -367,7 +367,7 @@ impl<'a> Visitor<'a> {
367367
self.record_parse_error(
368368
loc,
369369
self.diagnostics_writer
370-
.new_entry("parse-error", "Parse error")
370+
.new_entry("parse-error", "Could not process some files due to syntax errors")
371371
.severity(diagnostics::Severity::Warning)
372372
.location(self.path, start_line, start_column, end_line, end_column)
373373
.message(

ruby/ql/integration-tests/all-platforms/diagnostics/syntax-error/diagnostics.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"source": {
1616
"extractorName": "ruby",
1717
"id": "ruby/parse-error",
18-
"name": "Parse error"
18+
"name": "Could not process some files due to syntax errors"
1919
},
2020
"visibility": {
2121
"statusPage": true
@@ -38,7 +38,7 @@
3838
"source": {
3939
"extractorName": "ruby",
4040
"id": "ruby/parse-error",
41-
"name": "Parse error"
41+
"name": "Could not process some files due to syntax errors"
4242
},
4343
"visibility": {
4444
"statusPage": true

ruby/ql/integration-tests/all-platforms/diagnostics/unknown-encoding/diagnostics.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"source": {
1212
"extractorName": "ruby",
1313
"id": "ruby/unknown-character-encoding",
14-
"name": "Unknown character encoding"
14+
"name": "Could not process some files due to an unknown character encoding"
1515
},
1616
"visibility": {
1717
"statusPage": true

0 commit comments

Comments
 (0)