fix linter issues
This commit is contained in:
parent
94786b354b
commit
2f141340f0
5 changed files with 8 additions and 11 deletions
File diff suppressed because one or more lines are too long
2
lib/config-utils.test.js
generated
2
lib/config-utils.test.js
generated
|
|
@ -506,7 +506,7 @@ function queriesToResolvedQueryForm(queries) {
|
|||
- a/b@1.2.3
|
||||
python:
|
||||
- c/d@1.2.3
|
||||
`;
|
||||
`;
|
||||
fs.mkdirSync(path.join(tmpDir, "foo"));
|
||||
const resolveQueriesArgs = [];
|
||||
const codeQL = (0, codeql_1.setCodeQL)({
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -936,9 +936,7 @@ test("Queries can be specified in configuration, same as file", async (t) => {
|
|||
- a/b@1.2.3
|
||||
python:
|
||||
- c/d@1.2.3
|
||||
`;
|
||||
|
||||
|
||||
`;
|
||||
|
||||
fs.mkdirSync(path.join(tmpDir, "foo"));
|
||||
|
||||
|
|
@ -2757,5 +2755,3 @@ const mockRepositoryNwo = parseRepositoryNwo("owner/repo");
|
|||
t.deepEqual(mockRequest.called, args.expectedApiCall);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1708,12 +1708,14 @@ export async function initConfig(
|
|||
|
||||
// if configuration is set, it takes precedence over configFile
|
||||
if (configuration) {
|
||||
const configFileToCreate = path.resolve(workspacePath, "user-config-from-action.yml");
|
||||
const configFileToCreate = path.resolve(
|
||||
workspacePath,
|
||||
"user-config-from-action.yml"
|
||||
);
|
||||
fs.writeFileSync(configFileToCreate, configuration);
|
||||
configFile = configFileToCreate;
|
||||
logger.debug(`Using configuration from action input: ${configFile}`);
|
||||
}
|
||||
|
||||
|
||||
// If no config file was provided create an empty one
|
||||
if (!configFile) {
|
||||
|
|
@ -1758,7 +1760,6 @@ export async function initConfig(
|
|||
);
|
||||
}
|
||||
|
||||
|
||||
// When using the codescanning config in the CLI, pack downloads
|
||||
// happen in the CLI during the `database init` command, so no need
|
||||
// to download them here.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue