Skip to content

Commit a36fc67

Browse files
committed
Remove CodeQL version guards for 2.11.5 and earlier
1 parent 6491452 commit a36fc67

12 files changed

+14
-114
lines changed

lib/codeql.js

Lines changed: 3 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/codeql.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/codeql.test.js

Lines changed: 0 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/codeql.test.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/feature-flags.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/feature-flags.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action-post-helper.js

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action-post-helper.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/codeql.test.ts

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -951,58 +951,6 @@ test("does not pass a qlconfig to the CLI when it is undefined", async (t: Execu
951951
});
952952
});
953953

954-
test("databaseInterpretResults() sets --sarif-add-baseline-file-info for 2.11.3", async (t) => {
955-
const runnerConstructorStub = stubToolRunnerConstructor();
956-
const codeqlObject = await codeql.getCodeQLForTesting();
957-
sinon.stub(codeqlObject, "getVersion").resolves(makeVersionInfo("2.11.3"));
958-
// safeWhich throws because of the test CodeQL object.
959-
sinon.stub(safeWhich, "safeWhich").resolves("");
960-
await codeqlObject.databaseInterpretResults(
961-
"",
962-
[],
963-
"",
964-
"",
965-
"",
966-
"-v",
967-
"",
968-
stubConfig,
969-
createFeatures([]),
970-
getRunnerLogger(true),
971-
);
972-
t.true(
973-
runnerConstructorStub.firstCall.args[1].includes(
974-
"--sarif-add-baseline-file-info",
975-
),
976-
"--sarif-add-baseline-file-info should be present, but it is absent",
977-
);
978-
});
979-
980-
test("databaseInterpretResults() does not set --sarif-add-baseline-file-info for 2.11.2", async (t) => {
981-
const runnerConstructorStub = stubToolRunnerConstructor();
982-
const codeqlObject = await codeql.getCodeQLForTesting();
983-
sinon.stub(codeqlObject, "getVersion").resolves(makeVersionInfo("2.11.2"));
984-
// safeWhich throws because of the test CodeQL object.
985-
sinon.stub(safeWhich, "safeWhich").resolves("");
986-
await codeqlObject.databaseInterpretResults(
987-
"",
988-
[],
989-
"",
990-
"",
991-
"",
992-
"-v",
993-
"",
994-
stubConfig,
995-
createFeatures([]),
996-
getRunnerLogger(true),
997-
);
998-
t.false(
999-
runnerConstructorStub.firstCall.args[1].includes(
1000-
"--sarif-add-baseline-file-info",
1001-
),
1002-
"--sarif-add-baseline-file-info must be absent, but it is present",
1003-
);
1004-
});
1005-
1006954
const NEW_ANALYSIS_SUMMARY_TEST_CASES = [
1007955
{
1008956
codeqlVersion: "2.15.0",

0 commit comments

Comments
 (0)