From 1394abcf9803056ef1b4695ee1311b59d9918a34 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Tue, 14 Mar 2023 21:44:19 +0000 Subject: [PATCH] JS: Update diagnostics IDs for consistency with rules --- javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java | 2 +- .../all-platforms/diagnostics/syntax-error/diagnostics.expected | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java b/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java index 1c7dd728101..629c3d151c1 100644 --- a/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java +++ b/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java @@ -568,7 +568,7 @@ public class AutoBuild { } // DiagnosticLevel level, String extractorName, String sourceId, String sourceName, String markdown - diagnostics.get().writeMarkdown(error.getLevel(), "javascript", "javascript/" + error.getId(), error.getName(), + diagnostics.get().writeMarkdown(error.getLevel(), "javascript", "js/" + error.getId(), error.getName(), message, location); } diff --git a/javascript/ql/integration-tests/all-platforms/diagnostics/syntax-error/diagnostics.expected b/javascript/ql/integration-tests/all-platforms/diagnostics/syntax-error/diagnostics.expected index a480f2fe3dd..0c4405ea92b 100644 --- a/javascript/ql/integration-tests/all-platforms/diagnostics/syntax-error/diagnostics.expected +++ b/javascript/ql/integration-tests/all-platforms/diagnostics/syntax-error/diagnostics.expected @@ -10,7 +10,7 @@ "severity": "warning", "source": { "extractorName": "javascript", - "id": "javascript/parse-error", + "id": "js/parse-error", "name": "Could not process some files due to syntax errors" }, "visibility": {