Use joinAtMost for log message

This commit is contained in:
Michael B. Gale
2026-01-21 13:12:28 +00:00
parent 6a02be43ee
commit 9e2fa7419d
2 changed files with 10 additions and 2 deletions

View File

@@ -60,6 +60,7 @@ import {
getCodeQLMemoryLimit,
getErrorMessage,
isInTestMode,
joinAtMost,
} from "./util";
export * from "./config/db-config";
@@ -964,7 +965,7 @@ export async function initConfig(
config.computedConfig["paths-ignore"] ??= [];
config.computedConfig["paths-ignore"].push(...generatedFiles);
logger.info(
`Detected ${generatedFiles.length} generated file(s), which will be excluded from analysis: ${generatedFiles.join(", ")}`,
`Detected ${generatedFiles.length} generated file(s), which will be excluded from analysis: ${joinAtMost(generatedFiles, ", ", 10)}`,
);
} else {
logger.info(`Found no generated files.`);