Skip to content

Commit 9e2fa74

Browse files
committed
Use joinAtMost for log message
1 parent 6a02be4 commit 9e2fa74

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

lib/init-action.js

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config-utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ import {
6060
getCodeQLMemoryLimit,
6161
getErrorMessage,
6262
isInTestMode,
63+
joinAtMost,
6364
} from "./util";
6465

6566
export * from "./config/db-config";
@@ -964,7 +965,7 @@ export async function initConfig(
964965
config.computedConfig["paths-ignore"] ??= [];
965966
config.computedConfig["paths-ignore"].push(...generatedFiles);
966967
logger.info(
967-
`Detected ${generatedFiles.length} generated file(s), which will be excluded from analysis: ${generatedFiles.join(", ")}`,
968+
`Detected ${generatedFiles.length} generated file(s), which will be excluded from analysis: ${joinAtMost(generatedFiles, ", ", 10)}`,
968969
);
969970
} else {
970971
logger.info(`Found no generated files.`);

0 commit comments

Comments
 (0)