move error matcher definition into dedicated file

This commit is contained in:
Nick Fyson 2020-09-07 15:49:03 +01:00
parent 1f3ce75844
commit 7dbaff09b6
11 changed files with 40 additions and 12 deletions

5
lib/codeql.js generated
View file

@ -22,6 +22,7 @@ const globalutil = __importStar(require("util"));
const v4_1 = __importDefault(require("uuid/v4"));
const api = __importStar(require("./api-client"));
const defaults = __importStar(require("./defaults.json")); // Referenced from codeql-action-sync-tool!
const error_matcher_1 = require("./error_matcher");
const exec_wrapper_1 = require("./exec_wrapper");
const util = __importStar(require("./util"));
/**
@ -296,7 +297,7 @@ function getCodeQLForCmd(cmd) {
databasePath,
'--',
traceCommand
], [[0, new RegExp("(No source code was seen during the build\\.|No JavaScript or TypeScript code found\\.)"), 'foo bar']]);
], error_matcher_1.error_matchers);
},
finalizeDatabase: async function (databasePath) {
await exec_wrapper_1.exec_wrapper(cmd, [
@ -304,7 +305,7 @@ function getCodeQLForCmd(cmd) {
'finalize',
...getExtraOptionsFromEnv(['database', 'finalize']),
databasePath
], [[0, new RegExp("(No source code was seen during the build\\.|No JavaScript or TypeScript code found\\.)"), 'foo bar']]);
], error_matcher_1.error_matchers);
},
resolveQueries: async function (queries, extraSearchPath) {
const codeqlArgs = [