Skip to content

Commit 0de4259

Browse files
committed
Revert "Ruby: Use rb prefix in diagnostic IDs for consistency with queries"
This reverts commit a6509c7.
1 parent fbe9823 commit 0de4259

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ruby/extractor/src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl LogWriter {
9393
DiagnosticMessage {
9494
timestamp: chrono::Utc::now(),
9595
source: Source {
96-
id: format!("rb/{}", id),
96+
id: format!("{}/{}", self.extractor, id),
9797
name: name.to_owned(),
9898
extractor_name: Some(self.extractor.to_owned()),
9999
},

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
@@ -14,7 +14,7 @@
1414
"severity": "warning",
1515
"source": {
1616
"extractorName": "ruby",
17-
"id": "rb/parse-error",
17+
"id": "ruby/parse-error",
1818
"name": "Parse error"
1919
},
2020
"visibility": {
@@ -37,7 +37,7 @@
3737
"severity": "warning",
3838
"source": {
3939
"extractorName": "ruby",
40-
"id": "rb/parse-error",
40+
"id": "ruby/parse-error",
4141
"name": "Parse error"
4242
},
4343
"visibility": {

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
@@ -10,7 +10,7 @@
1010
"severity": "warning",
1111
"source": {
1212
"extractorName": "ruby",
13-
"id": "rb/unknown-character-encoding",
13+
"id": "ruby/unknown-character-encoding",
1414
"name": "Unknown character encoding"
1515
},
1616
"visibility": {

0 commit comments

Comments
 (0)