From c57528fbbe6927ad0e91547ad49be74c479b39c4 Mon Sep 17 00:00:00 2001 From: Casey Marshall Date: Mon, 14 Oct 2024 09:28:41 -0500 Subject: [PATCH] chore: correction on diagnostic example in readme (#699) --- README.md | 88 ++++++++++++++++++++++++++----------------------------- 1 file changed, 42 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index e5d97d80e..813d899c4 100644 --- a/README.md +++ b/README.md @@ -74,23 +74,21 @@ Right now the language server supports the following actions: "message": "Message", "tags": ["security"], "data": { - "scanIssue": { - "id": "123", - "issueType": "vulnerability", - "packageName": "packageName", - "packageVersion": "packageVersion", - "issue": "issue", - "additionalData": { - "ruleId": "ruleId", - "identifiers": { - "cwe": ["cwe"], - "cve": ["cve"] - }, - "description": "description", - "language": "language", - "packageManager": "packageManager", - "packageName": "packageName" - } + "id": "123", + "issueType": "vulnerability", + "packageName": "packageName", + "packageVersion": "packageVersion", + "issue": "issue", + "additionalData": { + "ruleId": "ruleId", + "identifiers": { + "cwe": ["cwe"], + "cve": ["cve"] + }, + "description": "description", + "language": "language", + "packageManager": "packageManager", + "packageName": "packageName" } } } @@ -113,35 +111,33 @@ Right now the language server supports the following actions: "message": "Message", "tags": ["security"], "data": { - "scanIssue": { - "id": "123", - "filePath": "filePath", - "range": { - "start": { "line": 1, "character": 0 }, - "end": { "line": 2, "character": 0 }, - }, - "additionalData": { - "message": "message", - "rule": "rule", - "ruleId": "ruleId", - "dataFlow": [ - { - "filePath": "filePath", - "range": { - "start": { "line": 1, "character": 0 }, - "end": { "line": 2, "character": 0 }, - }, - } - ], - "exampleCommitFixes": [ - { - "commit": "commit", - "diff": "diff" - } - ], - "cwe": "cwe", - "isSecurityType": true - } + "id": "123", + "filePath": "filePath", + "range": { + "start": { "line": 1, "character": 0 }, + "end": { "line": 2, "character": 0 }, + }, + "additionalData": { + "message": "message", + "rule": "rule", + "ruleId": "ruleId", + "dataFlow": [ + { + "filePath": "filePath", + "range": { + "start": { "line": 1, "character": 0 }, + "end": { "line": 2, "character": 0 }, + }, + } + ], + "exampleCommitFixes": [ + { + "commit": "commit", + "diff": "diff" + } + ], + "cwe": "cwe", + "isSecurityType": true } } }