reformat code and allow negative values for threads

This commit is contained in:
Alex Kalyvitis 2020-06-22 21:39:09 +02:00
parent bcb5b28954
commit 31996935e6
8 changed files with 37 additions and 27 deletions

View file

@ -19,7 +19,7 @@ import * as util from './util';
*
* Format is a map from language to an array of path suffixes of .ql files.
*/
const DISABLED_BUILTIN_QUERIES: { [language: string]: string[]; } = {
const DISABLED_BUILTIN_QUERIES: {[language: string]: string[]} = {
'csharp': [
'ql/src/Security Features/CWE-937/VulnerablePackage.ql',
'ql/src/Security Features/CWE-451/MissingXFrameOptions.ql',
@ -75,14 +75,14 @@ async function finalizeDatabaseCreation(codeqlCmd: string, databaseFolder: strin
interface ResolveQueriesOutput {
byLanguage: {
[language: string]: {
[queryPath: string]: {};
};
[queryPath: string]: {}
}
};
noDeclaredLanguage: {
[queryPath: string]: {};
[queryPath: string]: {}
};
multipleDeclaredLanguages: {
[queryPath: string]: {};
[queryPath: string]: {}
};
}
@ -98,11 +98,11 @@ async function runResolveQueries(codeqlCmd: string, queries: string[]): Promise<
await exec.exec(
codeqlCmd, [
'resolve',
'queries',
...queries,
'--format=bylanguage'
],
'resolve',
'queries',
...queries,
'--format=bylanguage'
],
options);
return JSON.parse(output);