fix linter issues

This commit is contained in:
Tugdual Grall 2023-03-18 15:14:34 +00:00
parent 94786b354b
commit 2f141340f0
5 changed files with 8 additions and 11 deletions

File diff suppressed because one or more lines are too long

View file

@ -506,7 +506,7 @@ function queriesToResolvedQueryForm(queries) {
- a/b@1.2.3 - a/b@1.2.3
python: python:
- c/d@1.2.3 - c/d@1.2.3
`; `;
fs.mkdirSync(path.join(tmpDir, "foo")); fs.mkdirSync(path.join(tmpDir, "foo"));
const resolveQueriesArgs = []; const resolveQueriesArgs = [];
const codeQL = (0, codeql_1.setCodeQL)({ const codeQL = (0, codeql_1.setCodeQL)({

File diff suppressed because one or more lines are too long

View file

@ -936,9 +936,7 @@ test("Queries can be specified in configuration, same as file", async (t) => {
- a/b@1.2.3 - a/b@1.2.3
python: python:
- c/d@1.2.3 - c/d@1.2.3
`; `;
fs.mkdirSync(path.join(tmpDir, "foo")); fs.mkdirSync(path.join(tmpDir, "foo"));
@ -2757,5 +2755,3 @@ const mockRepositoryNwo = parseRepositoryNwo("owner/repo");
t.deepEqual(mockRequest.called, args.expectedApiCall); t.deepEqual(mockRequest.called, args.expectedApiCall);
}); });
}); });

View file

@ -1708,12 +1708,14 @@ export async function initConfig(
// if configuration is set, it takes precedence over configFile // if configuration is set, it takes precedence over configFile
if (configuration) { 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); fs.writeFileSync(configFileToCreate, configuration);
configFile = configFileToCreate; configFile = configFileToCreate;
logger.debug(`Using configuration from action input: ${configFile}`); logger.debug(`Using configuration from action input: ${configFile}`);
} }
// If no config file was provided create an empty one // If no config file was provided create an empty one
if (!configFile) { if (!configFile) {
@ -1758,7 +1760,6 @@ export async function initConfig(
); );
} }
// When using the codescanning config in the CLI, pack downloads // When using the codescanning config in the CLI, pack downloads
// happen in the CLI during the `database init` command, so no need // happen in the CLI during the `database init` command, so no need
// to download them here. // to download them here.