Remove unused properties from VersionOutput
This commit is contained in:
parent
bb67eddd77
commit
49b94f1a2d
6 changed files with 2 additions and 42 deletions
8
lib/codeql.js
generated
8
lib/codeql.js
generated
|
|
@ -184,14 +184,6 @@ function setCodeQL(partialCodeql) {
|
||||||
cachedCodeQL = {
|
cachedCodeQL = {
|
||||||
getPath: resolveFunction(partialCodeql, "getPath", () => "/tmp/dummy-path"),
|
getPath: resolveFunction(partialCodeql, "getPath", () => "/tmp/dummy-path"),
|
||||||
getVersion: resolveFunction(partialCodeql, "getVersion", () => new Promise((resolve) => resolve({
|
getVersion: resolveFunction(partialCodeql, "getVersion", () => new Promise((resolve) => resolve({
|
||||||
productName: "CodeQL",
|
|
||||||
vendor: "GitHub",
|
|
||||||
sha: "",
|
|
||||||
branches: [],
|
|
||||||
copyright: "",
|
|
||||||
unpackedLocation: "",
|
|
||||||
configFileLocation: "",
|
|
||||||
configFileFound: false,
|
|
||||||
version: "1.0.0",
|
version: "1.0.0",
|
||||||
}))),
|
}))),
|
||||||
printVersion: resolveFunction(partialCodeql, "printVersion"),
|
printVersion: resolveFunction(partialCodeql, "printVersion"),
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
8
lib/testing-utils.js
generated
8
lib/testing-utils.js
generated
|
|
@ -191,14 +191,6 @@ exports.mockLanguagesInRepo = mockLanguagesInRepo;
|
||||||
* Constructs a `VersionOutput` object for testing purposes only.
|
* Constructs a `VersionOutput` object for testing purposes only.
|
||||||
*/
|
*/
|
||||||
const makeVersionOutput = (version) => ({
|
const makeVersionOutput = (version) => ({
|
||||||
productName: "CodeQL",
|
|
||||||
vendor: "GitHub",
|
|
||||||
sha: "",
|
|
||||||
branches: [],
|
|
||||||
copyright: "",
|
|
||||||
unpackedLocation: "",
|
|
||||||
configFileLocation: "",
|
|
||||||
configFileFound: false,
|
|
||||||
version,
|
version,
|
||||||
});
|
});
|
||||||
exports.makeVersionOutput = makeVersionOutput;
|
exports.makeVersionOutput = makeVersionOutput;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -213,15 +213,7 @@ export interface CodeQL {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VersionOutput {
|
export interface VersionOutput {
|
||||||
productName: string;
|
|
||||||
vendor: string;
|
|
||||||
version: string;
|
version: string;
|
||||||
sha: string;
|
|
||||||
branches: string[];
|
|
||||||
copyright: string;
|
|
||||||
unpackedLocation: string;
|
|
||||||
configFileLocation: string;
|
|
||||||
configFileFound: boolean;
|
|
||||||
features?: { [name: string]: boolean };
|
features?: { [name: string]: boolean };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -458,14 +450,6 @@ export function setCodeQL(partialCodeql: Partial<CodeQL>): CodeQL {
|
||||||
() =>
|
() =>
|
||||||
new Promise((resolve) =>
|
new Promise((resolve) =>
|
||||||
resolve({
|
resolve({
|
||||||
productName: "CodeQL",
|
|
||||||
vendor: "GitHub",
|
|
||||||
sha: "",
|
|
||||||
branches: [],
|
|
||||||
copyright: "",
|
|
||||||
unpackedLocation: "",
|
|
||||||
configFileLocation: "",
|
|
||||||
configFileFound: false,
|
|
||||||
version: "1.0.0",
|
version: "1.0.0",
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -212,14 +212,6 @@ export function mockLanguagesInRepo(languages: string[]) {
|
||||||
* Constructs a `VersionOutput` object for testing purposes only.
|
* Constructs a `VersionOutput` object for testing purposes only.
|
||||||
*/
|
*/
|
||||||
export const makeVersionOutput = (version: string): CodeQL.VersionOutput => ({
|
export const makeVersionOutput = (version: string): CodeQL.VersionOutput => ({
|
||||||
productName: "CodeQL",
|
|
||||||
vendor: "GitHub",
|
|
||||||
sha: "",
|
|
||||||
branches: [],
|
|
||||||
copyright: "",
|
|
||||||
unpackedLocation: "",
|
|
||||||
configFileLocation: "",
|
|
||||||
configFileFound: false,
|
|
||||||
version,
|
version,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue