From 8e2293962e30aaeb6e7fb85bc1b2f2952ca376f6 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Thu, 11 Apr 2024 05:03:18 -0700 Subject: [PATCH] Update linter.ts --- packages/bun-internal-test/src/linter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bun-internal-test/src/linter.ts b/packages/bun-internal-test/src/linter.ts index 09be452665320d..2b15f6bb6dc264 100644 --- a/packages/bun-internal-test/src/linter.ts +++ b/packages/bun-internal-test/src/linter.ts @@ -29,7 +29,7 @@ for (const banned of BANNED) { .filter(line => !IGNORED_FOLDERS.some(folder => line.includes(folder))) .map(line => { const [path, lineNumber, ...text] = line.split(":"); - return { path, lineNumber, reason: banned, text: text.join(":") }; + return { path, lineNumber, reason: `**${banned}** is banned`, text: text.join(":") }; }); // Check if we got any output // Split the output into lines @@ -60,7 +60,7 @@ if (ci) { action.setFailed(`${bad.length} lint failures`); } action.setOutput("count", bad.length); - action.setOutput("text_output", bad.map(m => `- ${link(m)}: :red_circle: ${m.reason}`).join("\n")); + action.setOutput("text_output", bad.map(m => `- ${link(m)}: ${m.reason}`).join("\n")); action.setOutput("json_output", JSON.stringify(bad)); action.summary.addRaw(report); await action.summary.write();