From 8b07a3c2be6fe4674f9ce6bba6d5c962a7f50df5 Mon Sep 17 00:00:00 2001 From: Raymond Zhao <7199958+rzhao271@users.noreply.github.com> Date: Mon, 18 Sep 2023 11:29:35 -0700 Subject: [PATCH] Fix PoliCheck issues (#212) --- .vscode/settings.json | 3 ++- test-cases/first-mate/fixtures/latex.json | 2 +- test-cases/first-mate/tests.json | 6 +++--- test-cases/onigtests/fixtures/typescript.js | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index d2b2f57..a0d6abb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -19,5 +19,6 @@ "mochaExplorer.ui": "tdd", "testExplorer.useNativeTesting": true, - "mochaExplorer.files": "out/tests/all.test.js" + "mochaExplorer.files": "out/tests/all.test.js", + "sarif-viewer.connectToGithubCodeScanning": "off" } diff --git a/test-cases/first-mate/fixtures/latex.json b/test-cases/first-mate/fixtures/latex.json index 25d237f..277b25d 100644 --- a/test-cases/first-mate/fixtures/latex.json +++ b/test-cases/first-mate/fixtures/latex.json @@ -94,7 +94,7 @@ "name": "punctuation.definition.arguments.begin.latex" } }, - "comment": "this works OK with all kinds of crazy stuff as long as section is one line", + "comment": "this works OK with all kinds of ridiculous stuff as long as the section is one line", "contentName": "entity.name.section.latex", "end": "\\}", "endCaptures": { diff --git a/test-cases/first-mate/tests.json b/test-cases/first-mate/tests.json index 81fd0c5..6686f36 100644 --- a/test-cases/first-mate/tests.json +++ b/test-cases/first-mate/tests.json @@ -1230,7 +1230,7 @@ "grammarScopeName": "source.ruby", "lines": [ { - "line": "%Q+matz had some #{%Q-crazy ideas-} for ruby syntax+ # damn.", + "line": "%Q+matz had some #{%Q-incredible ideas-} for ruby syntax+ # wow.", "tokens": [ { "value": "%Q+", @@ -1268,7 +1268,7 @@ ] }, { - "value": "crazy ideas", + "value": "incredible ideas", "scopes": [ "source.ruby", "string.quoted.other.literal.upper.ruby", @@ -1328,7 +1328,7 @@ ] }, { - "value": " damn.", + "value": " wow.", "scopes": [ "source.ruby", "comment.line.number-sign.ruby" diff --git a/test-cases/onigtests/fixtures/typescript.js b/test-cases/onigtests/fixtures/typescript.js index 38b1107..e798d5f 100644 --- a/test-cases/onigtests/fixtures/typescript.js +++ b/test-cases/onigtests/fixtures/typescript.js @@ -76860,7 +76860,7 @@ var ts; reportFileNamesDifferOnlyInCasingError(fileName, file_1.fileName, refFile, refPos, refEnd); } // If the file was previously found via a node_modules search, but is now being processed as a root file, - // then everything it sucks in may also be marked incorrectly, and needs to be checked again. + // then everything it takes in may also be marked incorrectly, and needs to be checked again. if (file_1 && sourceFilesFoundSearchingNodeModules.get(file_1.path) && currentNodeModulesDepth === 0) { sourceFilesFoundSearchingNodeModules.set(file_1.path, false); if (!options.noResolve) {